/linux/security/apparmor/include/ |
H A D | file.h | 24 #define mask_mode_t(X) (X & (MAY_EXEC | MAY_WRITE | MAY_READ | MAY_APPEND)) 26 #define AA_AUDIT_FILE_MASK (MAY_READ | MAY_WRITE | MAY_EXEC | MAY_APPEND |\ 115 perms |= MAY_READ; in aa_map_file_to_perms()
|
H A D | task.h | 81 #define AA_PTRACE_READ MAY_READ 88 #define AA_SIGNAL_PERM_MASK (MAY_READ | MAY_WRITE)
|
H A D | perms.h | 18 #define AA_MAY_READ MAY_READ 55 #define PERMS_CHRS_MASK (MAY_READ | MAY_WRITE | AA_MAY_CREATE | \
|
/linux/Documentation/ABI/testing/ |
H A D | ima_policy | 39 mask:= [[^]MAY_READ] [[^]MAY_WRITE] [[^]MAY_APPEND] 116 measure func=FILE_CHECK mask=MAY_READ uid=0 134 measure subj_user=system_u func=FILE_CHECK mask=MAY_READ 135 measure subj_role=system_r func=FILE_CHECK mask=MAY_READ 139 measure subj_user=_ func=FILE_CHECK mask=MAY_READ
|
/linux/security/apparmor/ |
H A D | ipc.c | 40 if (mask & MAY_READ) in audit_signal_mask() 116 MAY_READ, &ad)); in aa_may_signal()
|
H A D | file.c | 32 m |= MAY_READ; in map_mask_to_chr_mask() 639 MAY_READ | MAY_WRITE, IN_ATOMIC)) in revalidate_tty()
|
H A D | task.c | 192 case MAY_READ: in audit_ptrace_mask()
|
H A D | policy_compat.c | 82 if (old & MAY_READ) in map_old_perms()
|
H A D | lsm.c | 416 MAY_READ | AA_MAY_GETATTR | MAY_WRITE | in apparmor_path_rename() 429 MAY_READ | AA_MAY_GETATTR | MAY_WRITE | in apparmor_path_rename() 477 fctx->allow = MAY_EXEC | MAY_READ | AA_EXEC_MMAP; in apparmor_file_open() 569 mask |= MAY_READ; in common_mmap()
|
/linux/security/smack/ |
H A D | smack_lsm.c | 112 if (mode & MAY_READ) in smk_bu_mode() 415 return MAY_READ; in smk_ptrace_mode() 903 rc = smk_curacc(sbp->smk_floor, MAY_READ, &ad); in smack_sb_statfs() 904 rc = smk_bu_current("statfs", sbp->smk_floor, MAY_READ, rc); in smack_sb_statfs() 1217 mask &= (MAY_READ|MAY_WRITE|MAY_EXEC|MAY_APPEND); in smack_inode_permission() 1280 rc = smk_curacc(smk_of_inode(inode), MAY_READ, &ad); in smack_inode_getattr() 1281 rc = smk_bu_inode(inode, MAY_READ, rc); in smack_inode_getattr() 1434 rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_READ, &ad); in smack_inode_getxattr() 1435 rc = smk_bu_inode(d_backing_inode(dentry), MAY_READ, rc); in smack_inode_getxattr() 1539 rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_READ, &ad); in smack_inode_get_acl() [all …]
|
H A D | smack.h | 245 #define MAY_ANYREAD (MAY_READ | MAY_EXEC) 246 #define MAY_READWRITE (MAY_READ | MAY_WRITE)
|
H A D | smack_access.c | 290 if (access & MAY_READ) in smack_str_from_perm()
|
/linux/include/linux/ |
H A D | device_cgroup.h | 33 if (mask & MAY_READ) in devcgroup_inode_permission()
|
H A D | fsnotify.h | 150 if (!(perm_mask & MAY_READ)) in fsnotify_file_area_perm()
|
/linux/fs/ |
H A D | bpf_fs_kfuncs.c | 128 ret = inode_permission(&nop_mnt_idmap, inode, MAY_READ); in bpf_get_dentry_xattr()
|
H A D | readdir.c | 93 res = security_file_permission(file, MAY_READ); in iterate_dir() 97 res = fsnotify_file_perm(file, MAY_READ); in iterate_dir()
|
H A D | remap_range.c | 104 int mask = write ? MAY_WRITE : MAY_READ; in remap_verify_area()
|
H A D | xattr.c | 384 error = xattr_permission(idmap, inode, name, MAY_READ); in vfs_getxattr_alloc() 434 error = xattr_permission(idmap, inode, name, MAY_READ); in vfs_getxattr()
|
/linux/fs/afs/ |
H A D | security.c | 441 if (mask & (MAY_EXEC | MAY_READ | MAY_CHDIR)) { in afs_permission() 455 if (mask & (MAY_EXEC | MAY_READ)) { in afs_permission()
|
/linux/security/integrity/ima/ |
H A D | ima_main.c | 573 mask & (MAY_READ | MAY_WRITE | MAY_EXEC | in ima_file_check() 793 MAY_READ, func); in ima_read_file() 836 MAY_READ, func); in ima_post_read_file()
|
H A D | ima_policy.c | 170 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ, 182 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ, 185 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ, 1557 entry->mask = MAY_READ; in ima_parse_rule() 2116 if (entry->mask & MAY_READ) in ima_policy_show()
|
/linux/fs/udf/ |
H A D | file.c | 134 if (file_permission(filp, MAY_READ) != 0) { in udf_ioctl()
|
/linux/fs/nfs/ |
H A D | dir.c | 3226 mask |= MAY_READ; in nfs_access_calc_mask() 3287 if ((mask & ~cache_mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) != 0) in nfs_do_access() 3303 mask |= MAY_READ; in nfs_open_permission_mask() 3343 if ((mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0) in nfs_permission() 3362 if ((mask & MAY_WRITE) && !(mask & MAY_READ)) in nfs_permission()
|
/linux/fs/coda/ |
H A D | dir.c | 84 mask &= MAY_READ | MAY_WRITE | MAY_EXEC; in coda_permission()
|
/linux/ipc/ |
H A D | mqueue.c | 871 static const int oflag2acc[O_ACCMODE] = { MAY_READ, MAY_WRITE, in prepare_open() 872 MAY_READ | MAY_WRITE }; in prepare_open()
|