Lines Matching refs:prot
3644 static int file_map_prot_check(struct file *file, unsigned long prot, int shared) in file_map_prot_check() argument
3651 (prot & PROT_EXEC) && (!file || IS_PRIVATE(file_inode(file)) || in file_map_prot_check()
3652 (!shared && (prot & PROT_WRITE)))) { in file_map_prot_check()
3670 if (shared && (prot & PROT_WRITE)) in file_map_prot_check()
3673 if (prot & PROT_EXEC) in file_map_prot_check()
3698 unsigned long prot, unsigned long flags) in selinux_mmap_file() argument
3713 prot = reqprot; in selinux_mmap_file()
3715 return file_map_prot_check(file, prot, in selinux_mmap_file()
3721 unsigned long prot) in selinux_file_mprotect() argument
3727 prot = reqprot; in selinux_file_mprotect()
3730 (prot & PROT_EXEC) && !(vma->vm_flags & VM_EXEC)) { in selinux_file_mprotect()
3758 return file_map_prot_check(vma->vm_file, prot, vma->vm_flags&VM_SHARED); in selinux_file_mprotect()