/freebsd/sys/kern/ |
H A D | subr_acl_posix1e.c | 65 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0, in vaccess_acl_posix1e() 88 if ((accmode & VEXEC) && !priv_check_cred(cred, PRIV_VFS_LOOKUP)) in vaccess_acl_posix1e() 89 priv_granted |= VEXEC; in vaccess_acl_posix1e() 96 if ((accmode & VEXEC) && (acl_posix1e_acl_to_mode(acl) & in vaccess_acl_posix1e() 99 priv_granted |= VEXEC; in vaccess_acl_posix1e() 127 dac_granted |= VEXEC; in vaccess_acl_posix1e() 181 acl_mask_granted |= VEXEC; in vaccess_acl_posix1e() 187 acl_mask_granted = VEXEC | VREAD | VWRITE | VAPPEND; in vaccess_acl_posix1e() 201 dac_granted |= VEXEC; in vaccess_acl_posix1e() 235 dac_granted |= VEXEC; in vaccess_acl_posix1e() [all …]
|
H A D | subr_acl_nfs4.c | 72 {VEXEC, ACL_EXECUTE}, 179 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND | in vaccess_acl_nfs4() 236 if (!denied && !is_directory && (accmode & VEXEC) && in vaccess_acl_nfs4() 256 if ((accmode & VEXEC) && !priv_check_cred(cred, PRIV_VFS_LOOKUP)) in vaccess_acl_nfs4() 257 priv_granted |= VEXEC; in vaccess_acl_nfs4() 264 if ((accmode & VEXEC) && (file_mode & in vaccess_acl_nfs4() 267 priv_granted |= VEXEC; in vaccess_acl_nfs4()
|
H A D | vfs_subr.c | 5590 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0, in vaccess() 5606 dac_granted |= VEXEC; in vaccess() 5621 dac_granted |= VEXEC; in vaccess() 5635 dac_granted |= VEXEC; in vaccess() 5657 if ((accmode & VEXEC) && ((dac_granted & VEXEC) == 0) && in vaccess() 5659 priv_granted |= VEXEC; in vaccess() 5666 if ((accmode & VEXEC) && ((dac_granted & VEXEC) == 0) && in vaccess() 5669 priv_granted |= VEXEC; in vaccess() 7190 return (VOP_ACCESS(vp, VEXEC, cnp->cn_cred, curthread)); in vn_dir_check_exec()
|
H A D | vfs_default.c | 332 KASSERT((ap->a_accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | in vop_stdaccess()
|
H A D | kern_exec.c | 1871 error = VOP_ACCESS(vp, VEXEC, td->td_ucred, td); in exec_check_permissions()
|
H A D | vfs_syscalls.c | 1038 return (VOP_ACCESS(vp, VEXEC, td->td_ucred, td)); in change_dir() 2101 accmode |= VEXEC; in vn_access()
|
H A D | vfs_vnops.c | 424 accmode |= VEXEC; in vn_open_vnode()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_policy.c | 139 if (accmode & VEXEC) { in secpolicy_vnode_access()
|
/freebsd/sys/security/mac_veriexec_parser/ |
H A D | mac_veriexec_parser.c | 356 is_exec = (va.va_mode & VEXEC); in parse_entry()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_acl.c | 2386 needed_bits |= VEXEC; in zfs_zaccess() 2428 checkmode |= VEXEC; in zfs_zaccess() 2499 downer, available_perms, VWRITE|VEXEC); in zfs_delete_final_check() 2621 available_perms |= (dzp_working_mode & ACE_EXECUTE) ? 0 : VEXEC; in zfs_zaccess_delete()
|
H A D | zfs_vnops_os.c | 4430 if (ap->a_accmode == VEXEC) { in zfs_freebsd_access() 4438 accmode = ap->a_accmode & (VREAD|VWRITE|VEXEC|VAPPEND); in zfs_freebsd_access() 4446 accmode = ap->a_accmode & ~(VREAD|VWRITE|VEXEC|VAPPEND); in zfs_freebsd_access() 4457 if (error == 0 && (ap->a_accmode & VEXEC) != 0 && vp->v_type != VDIR && in zfs_freebsd_access()
|
/freebsd/sys/security/mac_bsdextended/ |
H A D | mac_bsdextended.c | 472 if (accmode & VEXEC) in ugidfw_accmode2mbi()
|
/freebsd/sys/fs/unionfs/ |
H A D | union_subr.c | 1591 if ((error = mac_vnode_check_open(cred, lvp, VEXEC | VREAD)) != 0) in unionfs_check_rmdir() 1594 if ((error = VOP_ACCESS(lvp, VEXEC | VREAD, cred, td)) != 0) in unionfs_check_rmdir()
|
H A D | union_vnops.c | 893 if (accmode & VEXEC) in unionfs_check_corrected_access() 904 if (accmode & VEXEC) in unionfs_check_corrected_access() 914 if (accmode & VEXEC) in unionfs_check_corrected_access()
|
/freebsd/sys/fs/tarfs/ |
H A D | tarfs_vnops.c | 245 error = VOP_ACCESS(dvp, VEXEC, cnp->cn_cred, curthread); in tarfs_lookup()
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_internal.c | 224 if ((mode & VEXEC) != 0) in fuse_internal_access()
|
H A D | fuse_vnops.c | 1464 else if ((err = fuse_internal_access(dvp, VEXEC, td, cred))) in fuse_vnop_lookup()
|
/freebsd/sys/sys/ |
H A D | vnode.h | 340 #define VEXEC 000000000100 /* execute/search permission */ macro
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_lookup.c | 91 error = VOP_ACCESS(vdp, VEXEC, cred, td); in ufs_delete_denied()
|
/freebsd/sys/security/mac_biba/ |
H A D | mac_biba.c | 1730 if (accmode & (VREAD | VEXEC | VSTAT_PERMS)) { in biba_posixshm_check_open() 3133 if (accmode & (VREAD | VEXEC | VSTAT_PERMS)) { in biba_vnode_check_open()
|
/freebsd/sys/security/mac_mls/ |
H A D | mac_mls.c | 1626 if (accmode & (VREAD | VEXEC | VSTAT_PERMS)) { in mls_posixshm_check_open() 2763 if (accmode & (VREAD | VEXEC | VSTAT_PERMS)) { in mls_vnode_check_open()
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdserv.c | 208 if (nfsvno_accchk(vp, VEXEC, nd->nd_cred, exp, p, in nfsrvd_access() 859 nd->nd_repstat = nfsvno_accchk(vp, VEXEC, in nfsrvd_read() 2529 nd->nd_repstat = nfsvno_accchk(vp, VEXEC, in nfsrvd_lock() 3168 nd->nd_repstat = nfsvno_accchk(vp, VEXEC, in nfsrvd_open()
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clvnops.c | 495 if (ap->a_accmode & VEXEC) in nfs_access() 504 if (ap->a_accmode & VEXEC) in nfs_access()
|
/freebsd/sys/fs/tmpfs/ |
H A D | tmpfs_vnops.c | 412 if (__predict_true(accmode == VEXEC && in tmpfs_access()
|
/freebsd/sys/fs/p9fs/ |
H A D | p9fs_vnops.c | 258 error = VOP_ACCESS(dvp, VEXEC, cnp->cn_cred, curthread); in p9fs_lookup()
|