Capabilities: move cap_file_mmap to commoncap.c
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / security / capability.c
index f218dd3616478a16da846121eabb1216daf0df17..ec05730540249dd15e23f1b775f8645c04f28390 100644 (file)
@@ -330,15 +330,6 @@ static int cap_file_ioctl(struct file *file, unsigned int command,
        return 0;
 }
 
-static int cap_file_mmap(struct file *file, unsigned long reqprot,
-                        unsigned long prot, unsigned long flags,
-                        unsigned long addr, unsigned long addr_only)
-{
-       if ((addr < mmap_min_addr) && !capable(CAP_SYS_RAWIO))
-               return -EACCES;
-       return 0;
-}
-
 static int cap_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,
                             unsigned long prot)
 {