Searched refs:prot (Results 1 – 7 of 7) sorted by relevance
/security/apparmor/ |
D | lsm.c | 469 static int common_mmap(int op, struct file *file, unsigned long prot, in common_mmap() argument 478 if (prot & PROT_READ) in common_mmap() 484 if ((prot & PROT_WRITE) && !(flags & MAP_PRIVATE)) in common_mmap() 486 if (prot & PROT_EXEC) in common_mmap() 494 unsigned long prot, unsigned long flags, in apparmor_file_mmap() argument 500 rc = cap_file_mmap(file, reqprot, prot, flags, addr, addr_only); in apparmor_file_mmap() 504 return common_mmap(OP_FMMAP, file, prot, flags); in apparmor_file_mmap() 508 unsigned long reqprot, unsigned long prot) in apparmor_file_mprotect() argument 510 return common_mmap(OP_FMPROT, vma->vm_file, prot, in apparmor_file_mprotect()
|
/security/integrity/ima/ |
D | ima_main.c | 168 int ima_file_mmap(struct file *file, unsigned long prot) in ima_file_mmap() argument 174 if (prot & PROT_EXEC) in ima_file_mmap()
|
/security/ |
D | security.c | 681 unsigned long prot, unsigned long flags, in security_file_mmap() argument 686 ret = security_ops->file_mmap(file, reqprot, prot, flags, addr, addr_only); in security_file_mmap() 689 return ima_file_mmap(file, prot); in security_file_mmap() 693 unsigned long prot) in security_file_mprotect() argument 695 return security_ops->file_mprotect(vma, reqprot, prot); in security_file_mprotect()
|
D | commoncap.c | 975 unsigned long prot, unsigned long flags, in cap_file_mmap() argument
|
D | capability.c | 339 unsigned long prot) in cap_file_mprotect() argument
|
/security/selinux/ |
D | hooks.c | 3186 static int file_map_prot_check(struct file *file, unsigned long prot, int shared) in file_map_prot_check() argument 3192 (prot & PROT_EXEC) && (!file || (!shared && (prot & PROT_WRITE)))) { in file_map_prot_check() 3208 if (shared && (prot & PROT_WRITE)) in file_map_prot_check() 3211 if (prot & PROT_EXEC) in file_map_prot_check() 3222 unsigned long prot, unsigned long flags, in selinux_file_mmap() argument 3242 rc = cap_file_mmap(file, reqprot, prot, flags, addr, addr_only); in selinux_file_mmap() 3247 prot = reqprot; in selinux_file_mmap() 3249 return file_map_prot_check(file, prot, in selinux_file_mmap() 3255 unsigned long prot) in selinux_file_mprotect() argument 3260 prot = reqprot; in selinux_file_mprotect() [all …]
|
/security/smack/ |
D | smack_lsm.c | 1174 unsigned long reqprot, unsigned long prot, in smack_file_mmap() argument 1192 rc = cap_file_mmap(file, reqprot, prot, flags, addr, addr_only); in smack_file_mmap()
|