Lines Matching refs:prot
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()
3263 (prot & PROT_EXEC) && !(vma->vm_flags & VM_EXEC)) { in selinux_file_mprotect()
3286 return file_map_prot_check(vma->vm_file, prot, vma->vm_flags&VM_SHARED); in selinux_file_mprotect()