Searched refs:prot (Results 1 – 7 of 7) sorted by relevance
| /security/ipe/ |
| A D | hooks.c | 54 unsigned long prot, unsigned long flags) in ipe_mmap_file() argument 58 if (prot & PROT_EXEC) { in ipe_mmap_file() 82 unsigned long prot) in ipe_file_mprotect() argument 90 if (prot & PROT_EXEC) { in ipe_file_mprotect()
|
| A D | hooks.h | 27 int ipe_mmap_file(struct file *f, unsigned long reqprot, unsigned long prot, 31 unsigned long prot);
|
| /security/ |
| A D | security.c | 2971 if ((prot & (PROT_READ | PROT_EXEC)) != PROT_READ) in mmap_prot() 2972 return prot; in mmap_prot() 2974 return prot; in mmap_prot() 2979 return prot | PROT_EXEC; in mmap_prot() 2989 return prot; in mmap_prot() 2992 return prot | PROT_EXEC; in mmap_prot() 2995 return prot; in mmap_prot() 3009 int security_mmap_file(struct file *file, unsigned long prot, in security_mmap_file() argument 3012 return call_int_hook(mmap_file, file, prot, mmap_prot(file, prot), in security_mmap_file() 3040 unsigned long prot) in security_file_mprotect() argument [all …]
|
| /security/integrity/ima/ |
| A D | ima_main.c | 477 unsigned long prot, unsigned long flags) in ima_file_mmap() argument 494 if (prot & PROT_EXEC) in ima_file_mmap() 516 unsigned long prot) in ima_file_mprotect() argument 531 !(prot & PROT_EXEC) || (vma->vm_flags & VM_EXEC)) in ima_file_mprotect()
|
| /security/apparmor/ |
| A D | lsm.c | 561 static int common_mmap(const char *op, struct file *file, unsigned long prot, in common_mmap() argument 569 if (prot & PROT_READ) in common_mmap() 575 if ((prot & PROT_WRITE) && !(flags & MAP_PRIVATE)) in common_mmap() 577 if (prot & PROT_EXEC) in common_mmap() 584 unsigned long prot, unsigned long flags) in apparmor_mmap_file() argument 586 return common_mmap(OP_FMMAP, file, prot, flags, GFP_ATOMIC); in apparmor_mmap_file() 590 unsigned long reqprot, unsigned long prot) in apparmor_file_mprotect() argument 592 return common_mmap(OP_FMPROT, vma->vm_file, prot, in apparmor_file_mprotect()
|
| /security/selinux/ |
| A D | hooks.c | 3918 static int file_map_prot_check(struct file *file, unsigned long prot, int shared) in file_map_prot_check() argument 3925 (prot & PROT_EXEC) && (!file || IS_PRIVATE(file_inode(file)) || in file_map_prot_check() 3926 (!shared && (prot & PROT_WRITE)))) { in file_map_prot_check() 3943 if (shared && (prot & PROT_WRITE)) in file_map_prot_check() 3946 if (prot & PROT_EXEC) in file_map_prot_check() 3971 unsigned long prot, unsigned long flags) in selinux_mmap_file() argument 3985 return file_map_prot_check(file, prot, in selinux_mmap_file() 3991 unsigned long prot) in selinux_file_mprotect() argument 3997 (prot & PROT_EXEC) && !(vma->vm_flags & VM_EXEC)) { in selinux_file_mprotect() 4030 return file_map_prot_check(vma->vm_file, prot, vma->vm_flags&VM_SHARED); in selinux_file_mprotect()
|
| /security/smack/ |
| A D | smack_lsm.c | 1796 unsigned long reqprot, unsigned long prot, in smack_mmap_file() argument
|
Completed in 57 milliseconds