Lines Matching refs:prot
2965 static inline unsigned long mmap_prot(struct file *file, unsigned long prot)
2971 if ((prot & (PROT_READ | PROT_EXEC)) != PROT_READ)
2972 return prot;
2974 return prot;
2979 return prot | PROT_EXEC;
2989 return prot;
2992 return prot | PROT_EXEC;
2995 return prot;
3001 * @prot: protection applied by the kernel
3009 int security_mmap_file(struct file *file, unsigned long prot,
3012 return call_int_hook(mmap_file, file, prot, mmap_prot(file, prot),
3033 * @prot: protection applied by the kernel
3040 unsigned long prot)
3042 return call_int_hook(file_mprotect, vma, reqprot, prot);