Home
last modified time | relevance | path

Searched refs:MAY_EXEC (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.6.21/security/integrity/ima/
Dima_main.c443 0, MAY_EXEC, MMAP_CHECK_REQPROT); in ima_file_mmap()
450 0, MAY_EXEC, MMAP_CHECK); in ima_file_mmap()
489 current_cred(), secid, MAY_EXEC, MMAP_CHECK, in ima_file_mprotect()
492 current_cred(), secid, MAY_EXEC, in ima_file_mprotect()
533 MAY_EXEC, BPRM_CHECK); in ima_bprm_check()
539 MAY_EXEC, CREDS_CHECK); in ima_bprm_check()
558 mask & (MAY_READ | MAY_WRITE | MAY_EXEC | in ima_file_check()
Dima_policy.c166 {.action = MEASURE, .func = MMAP_CHECK, .mask = MAY_EXEC,
168 {.action = MEASURE, .func = BPRM_CHECK, .mask = MAY_EXEC,
178 {.action = MEASURE, .func = MMAP_CHECK, .mask = MAY_EXEC,
180 {.action = MEASURE, .func = BPRM_CHECK, .mask = MAY_EXEC,
1549 entry->mask = MAY_EXEC; in ima_parse_rule()
2108 if (entry->mask & MAY_EXEC) in ima_policy_show()
/linux-6.6.21/security/apparmor/include/
Dfile.h24 #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 |\
Dperms.h16 #define AA_MAY_EXEC MAY_EXEC
/linux-6.6.21/fs/coda/
Dpioctl.c47 return (mask & MAY_EXEC) ? -EACCES : 0; in coda_ioctl_permission()
Ddir.c84 mask &= MAY_READ | MAY_WRITE | MAY_EXEC; in coda_permission()
89 if ((mask & MAY_EXEC) && !execute_ok(inode)) in coda_permission()
/linux-6.6.21/fs/afs/
Dsecurity.c441 if (mask & (MAY_EXEC | MAY_READ | MAY_CHDIR)) { in afs_permission()
453 if ((mask & MAY_EXEC) && !(inode->i_mode & S_IXUSR)) in afs_permission()
455 if (mask & (MAY_EXEC | MAY_READ)) { in afs_permission()
/linux-6.6.21/fs/
Dinit.c52 error = path_permission(&path, MAY_EXEC | MAY_CHDIR); in init_chdir()
67 error = path_permission(&path, MAY_EXEC | MAY_CHDIR); in init_chroot()
Dopen.c489 if ((mode & MAY_EXEC) && S_ISREG(inode->i_mode)) { in do_faccessat()
555 error = path_permission(&path, MAY_EXEC | MAY_CHDIR); in SYSCALL_DEFINE1()
584 error = file_permission(f.file, MAY_EXEC | MAY_CHDIR); in SYSCALL_DEFINE1()
603 error = path_permission(&path, MAY_EXEC | MAY_CHDIR); in SYSCALL_DEFINE1()
Dnamei.c427 mask &= MAY_READ | MAY_WRITE | MAY_EXEC; in generic_permission()
437 if (!(mask & MAY_EXEC) || (inode->i_mode & S_IXUGO)) in generic_permission()
1720 int err = inode_permission(idmap, nd->inode, MAY_EXEC|MAY_NOT_BLOCK); in may_lookup()
1724 return inode_permission(idmap, nd->inode, MAY_EXEC); in may_lookup()
2690 return inode_permission(idmap, base->d_inode, MAY_EXEC); in lookup_one_common()
2970 error = inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in may_delete()
3014 return inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in may_create()
3242 if (acc_mode & MAY_EXEC) in may_open()
3252 if (acc_mode & MAY_EXEC) in may_open()
3257 if ((acc_mode & MAY_EXEC) && path_noexec(path)) in may_open()
[all …]
Dexec.c131 .acc_mode = MAY_READ | MAY_EXEC, in SYSCALL_DEFINE1()
912 .acc_mode = MAY_EXEC, in do_open_execat()
Dposix_acl.c385 want &= MAY_READ | MAY_WRITE | MAY_EXEC; in posix_acl_permission()
/linux-6.6.21/security/apparmor/
Ddomain.c340 if (!(perm & MAY_EXEC)) { in aa_xattrs_match()
426 if (perm & MAY_EXEC) { in find_attach()
674 if (perms.allow & MAY_EXEC) { in profile_transition()
685 perms.allow &= ~MAY_EXEC; in profile_transition()
720 aa_audit_file(subj_cred, profile, &perms, OP_EXEC, MAY_EXEC, name, in profile_transition()
993 OP_EXEC, MAY_EXEC, in apparmor_bprm_creds_for_exec()
Dfile.c397 } else if ((lperms.allow & MAY_EXEC) && in profile_path_link()
399 lperms.allow &= ~MAY_EXEC; in profile_path_link()
400 request |= MAY_EXEC; in profile_path_link()
/linux-6.6.21/Documentation/ABI/testing/
Dima_policy40 [[^]MAY_EXEC]
115 measure func=FILE_MMAP mask=MAY_EXEC
/linux-6.6.21/fs/configfs/
Dsymlink.c200 MAY_WRITE | MAY_EXEC); in configfs_symlink()
/linux-6.6.21/security/smack/
Dsmack.h245 #define MAY_ANYREAD (MAY_READ | MAY_EXEC)
Dsmack_access.c294 if (access & MAY_EXEC) in smack_str_from_perm()
/linux-6.6.21/fs/gfs2/
Dinode.c333 error = gfs2_permission(&nop_mnt_idmap, dir, MAY_EXEC); in gfs2_lookupi()
364 MAY_WRITE | MAY_EXEC); in create_ok()
977 error = gfs2_permission(&nop_mnt_idmap, dir, MAY_WRITE | MAY_EXEC); in gfs2_link()
1093 MAY_WRITE | MAY_EXEC); in gfs2_unlink_ok()
1519 MAY_WRITE | MAY_EXEC); in gfs2_rename()
/linux-6.6.21/fs/nfs/
Ddir.c3167 mask |= MAY_EXEC; in nfs_access_calc_mask()
3172 mask |= MAY_EXEC; in nfs_access_calc_mask()
3223 if ((mask & ~cache_mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) != 0) in nfs_do_access()
3236 mask = MAY_EXEC; in nfs_open_permission_mask()
3279 if ((mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0) in nfs_permission()
3308 if (!res && (mask & MAY_EXEC)) in nfs_permission()
/linux-6.6.21/fs/nfsd/
Dnfsfh.c44 d_inode(parent), MAY_EXEC); in nfsd_acceptable()
/linux-6.6.21/fs/fuse/
Ddir.c1460 inarg.mask = mask & (MAY_READ | MAY_WRITE | MAY_EXEC); in fuse_access()
1513 ((mask & MAY_EXEC) && S_ISREG(inode->i_mode))) { in fuse_permission()
1546 } else if ((mask & MAY_EXEC) && S_ISREG(inode->i_mode)) { in fuse_permission()
/linux-6.6.21/fs/proc/
Dproc_sysctl.c424 if ((op & ~mode & (MAY_READ|MAY_WRITE|MAY_EXEC)) == 0) in test_perm()
810 if ((mask & MAY_EXEC) && S_ISREG(inode->i_mode)) in proc_sys_permission()
/linux-6.6.21/fs/smb/server/
Dvfs.c153 if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_EXEC)) in ksmbd_vfs_query_maximal_access()
156 if (!inode_permission(idmap, d_inode(dentry->d_parent), MAY_EXEC | MAY_WRITE)) in ksmbd_vfs_query_maximal_access()
/linux-6.6.21/fs/btrfs/
Dioctl.c916 error = inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in btrfs_may_delete()
949 return inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in btrfs_may_create()
1986 MAY_READ | MAY_EXEC); in btrfs_search_path_in_tree_user()
2535 err = inode_permission(idmap, inode, MAY_WRITE | MAY_EXEC); in btrfs_ioctl_snap_destroy()

12