Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 6 of 6) sorted by relevance

/security/
Dsecurity.c1413 static inline unsigned long mmap_prot(struct file *file, unsigned long prot) in mmap_prot() argument
1419 if ((prot & (PROT_READ | PROT_EXEC)) != PROT_READ) in mmap_prot()
1420 return prot; in mmap_prot()
1422 return prot; in mmap_prot()
1427 return prot | PROT_EXEC; in mmap_prot()
1437 return prot; in mmap_prot()
1440 return prot | PROT_EXEC; in mmap_prot()
1443 return prot; in mmap_prot()
1446 int security_mmap_file(struct file *file, unsigned long prot, in security_mmap_file() argument
1450 ret = call_int_hook(mmap_file, 0, file, prot, in security_mmap_file()
[all …]
Dcommoncap.c1337 unsigned long prot, unsigned long flags) in cap_mmap_file() argument
/security/apparmor/
Dlsm.c481 static int common_mmap(const char *op, struct file *file, unsigned long prot, in common_mmap() argument
489 if (prot & PROT_READ) in common_mmap()
495 if ((prot & PROT_WRITE) && !(flags & MAP_PRIVATE)) in common_mmap()
497 if (prot & PROT_EXEC) in common_mmap()
504 unsigned long prot, unsigned long flags) in apparmor_mmap_file() argument
506 return common_mmap(OP_FMMAP, file, prot, flags); in apparmor_mmap_file()
510 unsigned long reqprot, unsigned long prot) in apparmor_file_mprotect() argument
512 return common_mmap(OP_FMPROT, vma->vm_file, prot, in apparmor_file_mprotect()
/security/integrity/ima/
Dima_main.c381 int ima_file_mmap(struct file *file, unsigned long prot) in ima_file_mmap() argument
385 if (file && (prot & PROT_EXEC)) { in ima_file_mmap()
/security/selinux/
Dhooks.c3644 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()
[all …]
/security/smack/
Dsmack_lsm.c1660 unsigned long reqprot, unsigned long prot, in smack_mmap_file() argument