/freebsd/sys/kern/ |
H A D | subr_acl_posix1e.c | 65 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0, in vaccess_acl_posix1e() 109 if ((accmode & VADMIN) && !priv_check_cred(cred, PRIV_VFS_ADMIN)) in vaccess_acl_posix1e() 110 priv_granted |= VADMIN; in vaccess_acl_posix1e() 125 dac_granted |= VADMIN; in vaccess_acl_posix1e() 353 return ((accmode & VADMIN) ? EPERM : EACCES); in vaccess_acl_posix1e()
|
H A D | subr_acl_nfs4.c | 179 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND | in vaccess_acl_nfs4() 187 if (accmode & VADMIN) in vaccess_acl_nfs4()
|
H A D | vfs_subr.c | 5590 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0, in vaccess() 5604 dac_granted |= VADMIN; in vaccess() 5680 if ((accmode & VADMIN) && ((dac_granted & VADMIN) == 0) && in vaccess() 5682 priv_granted |= VADMIN; in vaccess() 5688 return ((accmode & VADMIN) ? EPERM : EACCES); in vaccess() 6785 *accmode |= VADMIN; in vfs_unixify_accmode()
|
H A D | uipc_sem.c | 212 error = vaccess(VREG, ks->ks_mode, ks->ks_uid, ks->ks_gid, VADMIN, in ksem_chmod()
|
H A D | vfs_default.c | 332 KASSERT((ap->a_accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | in vop_stdaccess()
|
H A D | uipc_shm.c | 1773 VADMIN, active_cred); in shm_chmod()
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_vnops.c | 1647 fuse_internal_access(dvp, VADMIN, td, in fuse_vnop_lookup() 1649 fuse_internal_access(*vpp, VADMIN, td, in fuse_vnop_lookup() 2282 accmode |= VADMIN; in fuse_vnop_setattr() 2303 accmode |= VADMIN; in fuse_vnop_setattr() 2334 accmode |= VADMIN; in fuse_vnop_setattr() 2361 accmode |= VADMIN; in fuse_vnop_setattr()
|
H A D | fuse_internal.c | 209 if (mode & VADMIN) { in fuse_internal_access()
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_acl.c | 397 if ((error = VOP_ACCESS(ap->a_vp, VADMIN, ap->a_cred, ap->a_td))) in ext2_setacl_posix1e()
|
H A D | ext2_vnops.c | 417 if ((error = VOP_ACCESS(vp, VADMIN, cred, td))) in ext2_setattr() 485 if ((error = VOP_ACCESS(vp, VADMIN, cred, td)) && in ext2_setattr() 531 if ((error = VOP_ACCESS(vp, VADMIN, cred, td))) in ext2_chmod() 575 if ((error = VOP_ACCESS(vp, VADMIN, cred, td))) in ext2_chown()
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_acl.c | 527 if ((error = VOP_ACCESS(ap->a_vp, VADMIN, ap->a_cred, ap->a_td))) in ufs_setacl_posix1e()
|
H A D | ufs_lookup.c | 123 VOP_ACCESS(vdp, VADMIN, cred, td) && in ufs_delete_denied() 124 VOP_ACCESS(tdp, VADMIN, cred, td)) in ufs_delete_denied()
|
H A D | ufs_vnops.c | 671 if ((error = VOP_ACCESS(vp, VADMIN, cred, td))) in ufs_setattr() 1616 VOP_ACCESS(tdvp, VADMIN, tcnp->cn_cred, td) && in ufs_rename() 1617 VOP_ACCESS(tvp, VADMIN, tcnp->cn_cred, td)) { in ufs_rename()
|
/freebsd/sys/fs/smbfs/ |
H A D | smbfs_vnops.c | 396 error = VOP_ACCESS(vp, VADMIN, ap->a_cred, td); in smbfs_setattr() 400 error = VOP_ACCESS(vp, VADMIN, ap->a_cred, td); in smbfs_setattr()
|
/freebsd/sys/sys/ |
H A D | vnode.h | 343 #define VADMIN 000000010000 /* being the file owner */ macro 369 #define VADMIN_PERMS (VADMIN | VWRITE_ATTRIBUTES | VWRITE_ACL | \
|
/freebsd/sys/fs/tmpfs/ |
H A D | tmpfs_subr.c | 2095 if ((error = VOP_ACCESS(vp, VADMIN, cred, td))) in tmpfs_chflags() 2152 if ((error = VOP_ACCESS(vp, VADMIN, cred, td))) in tmpfs_chmod() 2223 if ((error = VOP_ACCESS(vp, VADMIN, cred, td))) in tmpfs_chown()
|
H A D | tmpfs_vnops.c | 193 VOP_ACCESS(dvp, VADMIN, cnp->cn_cred, in tmpfs_lookup1() 194 curthread) && VOP_ACCESS(*vpp, VADMIN, in tmpfs_lookup1()
|
/freebsd/sys/security/mac/ |
H A D | mac_vfs.c | 1062 error = VOP_ACCESS(vp, VADMIN, cred, curthread); in vn_setlabel()
|
/freebsd/sys/fs/p9fs/ |
H A D | p9fs_vnops.c | 1084 if ((error = VOP_ACCESS(vp, VADMIN, cred, td))) in p9fs_chmod()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_vnops_os.c | 4796 if ((error = VOP_ACCESS(vp, VADMIN, cred, in zfs_freebsd_setattr()
|