/Linux-v5.10/security/apparmor/include/ |
D | ipc.h | 19 #define AA_PTRACE_READ MAY_READ 26 #define AA_SIGNAL_PERM_MASK (MAY_READ | MAY_WRITE)
|
D | file.h | 23 #define mask_mode_t(X) (X & (MAY_EXEC | MAY_WRITE | MAY_READ | MAY_APPEND)) 25 #define AA_AUDIT_FILE_MASK (MAY_READ | MAY_WRITE | MAY_EXEC | MAY_APPEND |\ 224 perms |= MAY_READ; in aa_map_file_to_perms()
|
D | perms.h | 18 #define AA_MAY_READ MAY_READ 52 #define PERMS_CHRS_MASK (MAY_READ | MAY_WRITE | AA_MAY_CREATE | \
|
/Linux-v5.10/Documentation/ABI/testing/ |
D | ima_policy | 36 mask:= [[^]MAY_READ] [[^]MAY_WRITE] [[^]MAY_APPEND] 92 measure func=FILE_CHECK mask=MAY_READ uid=0 110 measure subj_user=system_u func=FILE_CHECK mask=MAY_READ 111 measure subj_role=system_r func=FILE_CHECK mask=MAY_READ 115 measure subj_user=_ func=FILE_CHECK mask=MAY_READ
|
/Linux-v5.10/security/apparmor/ |
D | ipc.c | 30 case MAY_READ: in audit_ptrace_mask() 150 if (mask & MAY_READ) in audit_signal_mask() 217 profile_signal_perm(profile, sender, MAY_READ, &sa)); in aa_may_signal()
|
D | file.c | 30 m |= MAY_READ; in map_mask_to_chr_mask() 184 if (old & MAY_READ) in map_old_perms() 662 if (aa_file_perm(OP_INHERIT, label, file, MAY_READ | MAY_WRITE, in revalidate_tty()
|
D | lsm.c | 373 MAY_READ | AA_MAY_GETATTR | MAY_WRITE | in apparmor_path_rename() 417 fctx->allow = MAY_EXEC | MAY_READ | AA_EXEC_MMAP; in apparmor_file_open() 502 mask |= MAY_READ; in common_mmap()
|
/Linux-v5.10/security/smack/ |
D | smack_lsm.c | 98 if (mode & MAY_READ) in smk_bu_mode() 401 return MAY_READ; in smk_ptrace_mode() 881 rc = smk_curacc(sbp->smk_floor, MAY_READ, &ad); in smack_sb_statfs() 882 rc = smk_bu_current("statfs", sbp->smk_floor, MAY_READ, rc); in smack_sb_statfs() 1165 mask &= (MAY_READ|MAY_WRITE|MAY_EXEC|MAY_APPEND); in smack_inode_permission() 1226 rc = smk_curacc(smk_of_inode(inode), MAY_READ, &ad); in smack_inode_getattr() 1227 rc = smk_bu_inode(inode, MAY_READ, rc); in smack_inode_getattr() 1351 rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_READ, &ad); in smack_inode_getxattr() 1352 rc = smk_bu_inode(d_backing_inode(dentry), MAY_READ, rc); in smack_inode_getxattr() 1560 rc = smk_curacc(smk_of_inode(inode), MAY_READ, &ad); in smack_file_ioctl() [all …]
|
D | smack.h | 253 #define MAY_ANYREAD (MAY_READ | MAY_EXEC) 254 #define MAY_READWRITE (MAY_READ | MAY_WRITE)
|
D | smack_access.c | 291 if (access & MAY_READ) in smack_str_from_perm()
|
/Linux-v5.10/include/linux/ |
D | fsnotify.h | 99 if (!(mask & (MAY_READ | MAY_OPEN))) in fsnotify_perm() 111 } else if (mask & MAY_READ) { in fsnotify_perm()
|
D | device_cgroup.h | 33 if (mask & MAY_READ) in devcgroup_inode_permission()
|
/Linux-v5.10/security/integrity/ima/ |
D | ima_main.c | 499 mask & (MAY_READ | MAY_WRITE | MAY_EXEC | in ima_file_check() 654 0, MAY_READ, func); in ima_read_file() 697 MAY_READ, func); in ima_post_read_file()
|
D | ima_policy.c | 125 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ, 137 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ, 140 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ, 1261 entry->mask = MAY_READ; in ima_parse_rule() 1666 if (entry->mask & MAY_READ) in ima_policy_show()
|
/Linux-v5.10/fs/afs/ |
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-v5.10/fs/udf/ |
D | file.c | 186 if (inode_permission(inode, MAY_READ) != 0) { in udf_ioctl()
|
/Linux-v5.10/fs/nfs/ |
D | dir.c | 2631 mask |= MAY_READ; in nfs_access_calc_mask() 2696 if ((mask & ~cache_mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) != 0) in nfs_do_access() 2712 mask |= MAY_READ; in nfs_open_permission_mask() 2750 if ((mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0) in nfs_permission() 2769 if ((mask & MAY_WRITE) && !(mask & MAY_READ)) in nfs_permission()
|
/Linux-v5.10/fs/ |
D | xattr.c | 339 error = xattr_permission(inode, name, MAY_READ); in vfs_getxattr_alloc() 385 error = xattr_permission(inode, name, MAY_READ); in vfs_getxattr()
|
D | remap_range.c | 120 return security_file_permission(file, write ? MAY_WRITE : MAY_READ); in remap_verify_area()
|
D | readdir.c | 50 res = security_file_permission(file, MAY_READ); in iterate_dir()
|
D | exec.c | 132 .acc_mode = MAY_READ | MAY_EXEC, in SYSCALL_DEFINE1() 1394 if (inode_permission(inode, MAY_READ) < 0) { in would_dump()
|
/Linux-v5.10/fs/coda/ |
D | dir.c | 83 mask &= MAY_READ | MAY_WRITE | MAY_EXEC; in coda_permission()
|
/Linux-v5.10/fs/notify/inotify/ |
D | inotify_user.c | 346 error = inode_permission(path->dentry->d_inode, MAY_READ); in inotify_find_inode()
|
/Linux-v5.10/fs/overlayfs/ |
D | util.c | 470 acc_mode = MAY_READ; in ovl_path_open()
|
/Linux-v5.10/kernel/bpf/ |
D | inode.c | 561 int ret = inode_permission(inode, MAY_READ); in __get_prog_inode()
|