Lines Matching refs:prot
702 static inline unsigned long mmap_prot(struct file *file, unsigned long prot) in mmap_prot() argument
708 if ((prot & (PROT_READ | PROT_EXEC)) != PROT_READ) in mmap_prot()
709 return prot; in mmap_prot()
711 return prot; in mmap_prot()
716 return prot | PROT_EXEC; in mmap_prot()
728 return prot; in mmap_prot()
730 return prot | PROT_EXEC; in mmap_prot()
733 return prot; in mmap_prot()
736 int security_mmap_file(struct file *file, unsigned long prot, in security_mmap_file() argument
740 ret = security_ops->mmap_file(file, prot, in security_mmap_file()
741 mmap_prot(file, prot), flags); in security_mmap_file()
744 return ima_file_mmap(file, prot); in security_mmap_file()
753 unsigned long prot) in security_file_mprotect() argument
755 return security_ops->file_mprotect(vma, reqprot, prot); in security_file_mprotect()