Home
last modified time | relevance | path

Searched refs:MAY_READ (Results 1 – 25 of 44) sorted by relevance

12

/linux-5.19.10/security/apparmor/include/
Dipc.h19 #define AA_PTRACE_READ MAY_READ
26 #define AA_SIGNAL_PERM_MASK (MAY_READ | MAY_WRITE)
Dfile.h23 #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()
Dperms.h18 #define AA_MAY_READ MAY_READ
52 #define PERMS_CHRS_MASK (MAY_READ | MAY_WRITE | AA_MAY_CREATE | \
/linux-5.19.10/security/apparmor/
Dipc.c30 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()
Dfile.c32 m |= MAY_READ; in map_mask_to_chr_mask()
186 if (old & MAY_READ) in map_old_perms()
664 if (aa_file_perm(OP_INHERIT, label, file, MAY_READ | MAY_WRITE, in revalidate_tty()
Dlsm.c387 MAY_READ | AA_MAY_GETATTR | MAY_WRITE | in apparmor_path_rename()
398 MAY_READ | AA_MAY_GETATTR | MAY_WRITE | in apparmor_path_rename()
442 fctx->allow = MAY_EXEC | MAY_READ | AA_EXEC_MMAP; in apparmor_file_open()
531 mask |= MAY_READ; in common_mmap()
/linux-5.19.10/Documentation/ABI/testing/
Dima_policy39 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-5.19.10/security/smack/
Dsmack_lsm.c101 if (mode & MAY_READ) in smk_bu_mode()
404 return MAY_READ; in smk_ptrace_mode()
867 rc = smk_curacc(sbp->smk_floor, MAY_READ, &ad); in smack_sb_statfs()
868 rc = smk_bu_current("statfs", sbp->smk_floor, MAY_READ, rc); in smack_sb_statfs()
1151 mask &= (MAY_READ|MAY_WRITE|MAY_EXEC|MAY_APPEND); in smack_inode_permission()
1212 rc = smk_curacc(smk_of_inode(inode), MAY_READ, &ad); in smack_inode_getattr()
1213 rc = smk_bu_inode(inode, MAY_READ, rc); in smack_inode_getattr()
1339 rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_READ, &ad); in smack_inode_getxattr()
1340 rc = smk_bu_inode(d_backing_inode(dentry), MAY_READ, rc); in smack_inode_getxattr()
1551 rc = smk_curacc(smk_of_inode(inode), MAY_READ, &ad); in smack_file_ioctl()
[all …]
Dsmack.h253 #define MAY_ANYREAD (MAY_READ | MAY_EXEC)
254 #define MAY_READWRITE (MAY_READ | MAY_WRITE)
Dsmack_access.c290 if (access & MAY_READ) in smack_str_from_perm()
/linux-5.19.10/include/linux/
Ddevice_cgroup.h33 if (mask & MAY_READ) in devcgroup_inode_permission()
Dfsnotify.h108 if (!(mask & (MAY_READ | MAY_OPEN))) in fsnotify_perm()
120 } else if (mask & MAY_READ) { in fsnotify_perm()
/linux-5.19.10/security/integrity/ima/
Dima_main.c518 mask & (MAY_READ | MAY_WRITE | MAY_EXEC | in ima_file_check()
735 0, MAY_READ, func); in ima_read_file()
778 MAY_READ, func); in ima_post_read_file()
Dima_policy.c146 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ,
158 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ,
161 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ,
1503 entry->mask = MAY_READ; in ima_parse_rule()
2066 if (entry->mask & MAY_READ) in ima_policy_show()
/linux-5.19.10/fs/afs/
Dsecurity.c441 if (mask & (MAY_EXEC | MAY_READ | MAY_CHDIR)) { in afs_permission()
455 if (mask & (MAY_EXEC | MAY_READ)) { in afs_permission()
/linux-5.19.10/fs/udf/
Dfile.c188 if (file_permission(filp, MAY_READ) != 0) { in udf_ioctl()
/linux-5.19.10/fs/nfs/
Ddir.c3082 mask |= MAY_READ; in nfs_access_calc_mask()
3143 if ((mask & ~cache_mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) != 0) in nfs_do_access()
3159 mask |= MAY_READ; in nfs_open_permission_mask()
3199 if ((mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0) in nfs_permission()
3218 if ((mask & MAY_WRITE) && !(mask & MAY_READ)) in nfs_permission()
/linux-5.19.10/fs/
Dremap_range.c109 return security_file_permission(file, write ? MAY_WRITE : MAY_READ); in remap_verify_area()
Dxattr.c365 error = xattr_permission(mnt_userns, inode, name, MAY_READ); in vfs_getxattr_alloc()
412 error = xattr_permission(mnt_userns, inode, name, MAY_READ); in vfs_getxattr()
Dreaddir.c50 res = security_file_permission(file, MAY_READ); in iterate_dir()
Dposix_acl.c367 want &= MAY_READ | MAY_WRITE | MAY_EXEC; in posix_acl_permission()
Dexec.c130 .acc_mode = MAY_READ | MAY_EXEC, in SYSCALL_DEFINE1()
1419 if (inode_permission(mnt_userns, inode, MAY_READ) < 0) { in would_dump()
/linux-5.19.10/fs/coda/
Ddir.c84 mask &= MAY_READ | MAY_WRITE | MAY_EXEC; in coda_permission()
/linux-5.19.10/kernel/bpf/
Dinode.c562 int ret = inode_permission(&init_user_ns, inode, MAY_READ); in __get_prog_inode()
/linux-5.19.10/fs/notify/inotify/
Dinotify_user.c382 error = path_permission(path, MAY_READ); in inotify_find_inode()

12