Searched defs:prot (Results 1 - 7 of 7) sorted by relevance

/security/integrity/ima/
H A Dima_main.c260 * @prot: contains the protection that will be applied by the kernel.
268 int ima_file_mmap(struct file *file, unsigned long prot) argument
270 if (file && (prot & PROT_EXEC))
/security/
H A Dcommoncap.c995 unsigned long prot, unsigned long flags)
994 cap_mmap_file(struct file *file, unsigned long reqprot, unsigned long prot, unsigned long flags) argument
H A Dcapability.c350 unsigned long prot)
349 cap_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot) argument
H A Dsecurity.c732 static inline unsigned long mmap_prot(struct file *file, unsigned long prot) argument
738 if ((prot & (PROT_READ | PROT_EXEC)) != PROT_READ)
739 return prot;
741 return prot;
746 return prot | PROT_EXEC;
758 return prot;
760 return prot | PROT_EXEC;
763 return prot;
766 int security_mmap_file(struct file *file, unsigned long prot, argument
770 ret = security_ops->mmap_file(file, prot,
782 security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot) argument
[all...]
/security/apparmor/
H A Dlsm.c469 static int common_mmap(int op, struct file *file, unsigned long prot, argument
477 if (prot & PROT_READ)
483 if ((prot & PROT_WRITE) && !(flags & MAP_PRIVATE))
485 if (prot & PROT_EXEC)
492 unsigned long prot, unsigned long flags)
494 return common_mmap(OP_FMMAP, file, prot, flags);
498 unsigned long reqprot, unsigned long prot)
500 return common_mmap(OP_FMPROT, vma->vm_file, prot,
491 apparmor_mmap_file(struct file *file, unsigned long reqprot, unsigned long prot, unsigned long flags) argument
497 apparmor_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot) argument
/security/smack/
H A Dsmack_lsm.c1468 * @prot contains the protection that will be applied by the kernel.
1473 unsigned long reqprot, unsigned long prot,
1472 smack_mmap_file(struct file *file, unsigned long reqprot, unsigned long prot, unsigned long flags) argument
/security/selinux/
H A Dhooks.c3328 static int file_map_prot_check(struct file *file, unsigned long prot, int shared) argument
3334 (prot & PROT_EXEC) && (!file || (!shared && (prot & PROT_WRITE)))) {
3350 if (shared && (prot & PROT_WRITE))
3353 if (prot & PROT_EXEC)
3382 unsigned long prot, unsigned long flags)
3385 prot = reqprot;
3387 return file_map_prot_check(file, prot,
3393 unsigned long prot)
3398 prot
3381 selinux_mmap_file(struct file *file, unsigned long reqprot, unsigned long prot, unsigned long flags) argument
3391 selinux_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot) argument
[all...]

Completed in 2388 milliseconds