Home
last modified time | relevance | path

Searched refs:VADMIN (Results 1 – 20 of 20) sorted by relevance

/freebsd/sys/kern/
H A Dsubr_acl_posix1e.c65 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 Dsubr_acl_nfs4.c179 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND | in vaccess_acl_nfs4()
187 if (accmode & VADMIN) in vaccess_acl_nfs4()
H A Dvfs_subr.c5590 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 Duipc_sem.c212 error = vaccess(VREG, ks->ks_mode, ks->ks_uid, ks->ks_gid, VADMIN, in ksem_chmod()
H A Dvfs_default.c332 KASSERT((ap->a_accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | in vop_stdaccess()
H A Duipc_shm.c1773 VADMIN, active_cred); in shm_chmod()
/freebsd/sys/fs/fuse/
H A Dfuse_vnops.c1647 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 Dfuse_internal.c209 if (mode & VADMIN) { in fuse_internal_access()
/freebsd/sys/fs/ext2fs/
H A Dext2_acl.c397 if ((error = VOP_ACCESS(ap->a_vp, VADMIN, ap->a_cred, ap->a_td))) in ext2_setacl_posix1e()
H A Dext2_vnops.c417 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 Dufs_acl.c527 if ((error = VOP_ACCESS(ap->a_vp, VADMIN, ap->a_cred, ap->a_td))) in ufs_setacl_posix1e()
H A Dufs_lookup.c123 VOP_ACCESS(vdp, VADMIN, cred, td) && in ufs_delete_denied()
124 VOP_ACCESS(tdp, VADMIN, cred, td)) in ufs_delete_denied()
H A Dufs_vnops.c671 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 Dsmbfs_vnops.c396 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 Dvnode.h343 #define VADMIN 000000010000 /* being the file owner */ macro
369 #define VADMIN_PERMS (VADMIN | VWRITE_ATTRIBUTES | VWRITE_ACL | \
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_subr.c2095 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 Dtmpfs_vnops.c193 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 Dmac_vfs.c1062 error = VOP_ACCESS(vp, VADMIN, cred, curthread); in vn_setlabel()
/freebsd/sys/fs/p9fs/
H A Dp9fs_vnops.c1084 if ((error = VOP_ACCESS(vp, VADMIN, cred, td))) in p9fs_chmod()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vnops_os.c4796 if ((error = VOP_ACCESS(vp, VADMIN, cred, in zfs_freebsd_setattr()