]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - security/commoncap.c
team: pass NULL to __team_option_inst_add() instead of 0
[karo-tx-linux.git] / security / commoncap.c
index ebac3618896ee12bdbeaedb78cbf1c53caa51553..6dbae4650abe20208ff66eb27015e21b964d0344 100644 (file)
@@ -980,23 +980,8 @@ int cap_mmap_addr(unsigned long addr)
        return ret;
 }
 
-/*
- * cap_file_mmap - check if able to map given addr
- * @file: unused
- * @reqprot: unused
- * @prot: unused
- * @flags: unused
- * @addr: address attempting to be mapped
- * @addr_only: unused
- *
- * If the process is attempting to map memory below dac_mmap_min_addr they need
- * CAP_SYS_RAWIO.  The other parameters to this function are unused by the
- * capability security module.  Returns 0 if this mapping should be allowed
- * -EPERM if not.
- */
-int cap_file_mmap(struct file *file, unsigned long reqprot,
-                 unsigned long prot, unsigned long flags,
-                 unsigned long addr, unsigned long addr_only)
+int cap_mmap_file(struct file *file, unsigned long reqprot,
+                 unsigned long prot, unsigned long flags)
 {
-       return cap_mmap_addr(addr);
+       return 0;
 }