Home
last modified time | relevance | path

Searched refs:va_gid (Results 1 – 25 of 57) sorted by relevance

123

/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_policy.c262 ((mask & AT_GID) && vap->va_gid != ovap->va_gid && in secpolicy_vnode_setattr()
263 !groupmember(vap->va_gid, cr))) { in secpolicy_vnode_setattr()
272 ((mask & AT_GID) && vap->va_gid != ovap->va_gid)) { in secpolicy_vnode_setattr()
360 error = secpolicy_vnode_setids_setgids(vp, cr, ovap->va_gid); in secpolicy_setid_setsticky_clear()
/freebsd/contrib/netbsd-tests/fs/puffs/h_dtfs/
H A Ddtfs_vnops.c69 pn_dir->pn_va.va_uid, pn_dir->pn_va.va_gid, in dtfs_node_lookup()
89 pn_dir->pn_va.va_uid, pn_dir->pn_va.va_gid, in dtfs_node_lookup()
105 pn->pn_va.va_uid, pn->pn_va.va_gid, acc_mode, pcr); in dtfs_node_access()
119 if (va->va_uid != PUFFS_VNOVAL || va->va_gid != PUFFS_VNOVAL) { in dtfs_node_setattr()
120 rv = puffs_access_chown(pn->pn_va.va_uid, pn->pn_va.va_gid, in dtfs_node_setattr()
121 va->va_uid, va->va_gid, pcr); in dtfs_node_setattr()
127 rv = puffs_access_chmod(pn->pn_va.va_uid, pn->pn_va.va_gid, in dtfs_node_setattr()
137 rv = puffs_access_times(pn->pn_va.va_uid, pn->pn_va.va_gid, in dtfs_node_setattr()
H A Ddtfs_subr.c60 vap->va_gid = 0; in dtfs_baseattrs()
118 newpn->pn_va.va_gid = dir->pn_va.va_gid; in dtfs_genfile()
/freebsd/sys/security/mac_bsdextended/
H A Dmac_bsdextended.c294 match = (vap->va_gid <= rule->mbr_object.mbo_gid_max && in ugidfw_rulecheck()
295 vap->va_gid >= rule->mbr_object.mbo_gid_min); in ugidfw_rulecheck()
338 match = (groupmember(vap->va_gid, cred) || in ugidfw_rulecheck()
339 vap->va_gid == cred->cr_rgid || in ugidfw_rulecheck()
340 vap->va_gid == cred->cr_svgid); in ugidfw_rulecheck()
408 vap->va_gid); in ugidfw_rulecheck()
/freebsd/lib/libprocstat/
H A Dzfs_defs.c51 gid_t va_gid; /* owner group id */ member
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dvnode.h99 gid_t va_gid; /* owner gid */ member
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzpl_inode.c145 vap->va_gid = KGID_TO_SGID(dir->i_gid); in zpl_vap_init()
149 vap->va_gid = zfs_vfsgid_to_gid(mnt_ns, in zpl_vap_init()
558 vap->va_gid = zfs_vfsgid_to_gid(user_ns, zfs_i_user_ns(ip), in zpl_setattr()
561 vap->va_gid = KGID_TO_SGID(ia->ia_gid); in zpl_setattr()
H A Dpolicy.c334 secpolicy_vnode_setids_setgids(cr, ovap->va_gid, in secpolicy_setid_setsticky_clear()
H A Dzfs_acl.c1808 gid_t gid = vap->va_gid; in zfs_acl_ids_create()
1822 acl_ids->z_fgid = vap->va_gid; in zfs_acl_ids_create()
1831 acl_ids->z_fgid = zfs_fuid_create(zfsvfs, (uint64_t)vap->va_gid, in zfs_acl_ids_create()
1833 gid = vap->va_gid; in zfs_acl_ids_create()
1840 (uint64_t)vap->va_gid, in zfs_acl_ids_create()
1842 gid = vap->va_gid; in zfs_acl_ids_create()
1844 !groupmember(vap->va_gid, cr) && in zfs_acl_ids_create()
/freebsd/sys/fs/unionfs/
H A Dunion_subr.c666 uva->va_gid = lva->va_gid; in unionfs_create_uppervattr_core()
674 uva->va_gid = lva->va_gid; in unionfs_create_uppervattr_core()
679 uva->va_gid = ump->um_gid; in unionfs_create_uppervattr_core()
685 uva->va_gid = ump->um_gid; in unionfs_create_uppervattr_core()
H A Dunion_vnops.c888 gid = va->va_gid; in unionfs_check_corrected_access()
1034 ap->a_vap->va_gid, error); in unionfs_getattr()
1047 ap->a_vap->va_gid = va.va_gid; in unionfs_getattr()
1056 ap->a_vap->va_mode, ap->a_vap->va_uid, ap->a_vap->va_gid, error); in unionfs_getattr()
1084 vap->va_gid != (gid_t)VNOVAL || vap->va_atime.tv_sec != VNOVAL || in unionfs_setattr()
H A Dunion_vfsops.c162 gid = va.va_gid; in unionfs_domount()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clport.c421 dst->va_gid = src->va_gid; in ncl_copy_vattr()
1128 if (vap->va_gid != (gid_t)VNOVAL) { in nfscl_checksattr()
1129 if (vap->va_gid == nvap->na_gid) in nfscl_checksattr()
1130 vap->va_gid = (gid_t)VNOVAL; in nfscl_checksattr()
H A Dnfs_clvnops.c1069 vap->va_gid != (gid_t)VNOVAL || vap->va_atime.tv_sec != VNOVAL || in nfs_setattr()
1088 vap->va_gid == (gid_t)VNOVAL) in nfs_setattr()
1190 error = nfscl_maperr(td, error, vap->va_uid, vap->va_gid); in nfs_setattrrpc()
1690 vap->va_gid); in nfs_mknodrpc()
1815 vap->va_gid != (gid_t)VNOVAL)) { in nfs_create()
1818 vap->va_gid = (uid_t)VNOVAL; in nfs_create()
1841 vap->va_gid); in nfs_create()
2255 vap->va_uid, vap->va_gid); in nfs_symlink()
2347 vap->va_uid, vap->va_gid); in nfs_mkdir()
3468 error = vaccess(vp->v_type, vap->va_mode, vap->va_uid, vap->va_gid, in nfsspec_access()
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dvnode.h196 if (vap->va_gid != (gid_t)VNOVAL) in vattr_init_mask()
/freebsd/sys/fs/fuse/
H A Dfuse_internal.c206 va.va_gid, mode, cred); in fuse_internal_access()
333 vp_cache_at->va_gid = attr->gid; in fuse_internal_cache_attrs()
1161 if (vap->va_gid != (gid_t)VNOVAL) { in fuse_internal_setattr()
1162 fsai->gid = vap->va_gid; in fuse_internal_setattr()
H A Dfuse_vnops.c813 va.va_gid, VWRITE, cred); in fuse_vnop_close()
2284 if (vap->va_gid != (gid_t)VNOVAL) { in fuse_vnop_setattr()
2287 if (checkperm && !groupmember(vap->va_gid, cred)) { in fuse_vnop_setattr()
2299 if (vap->va_gid != old_va.va_gid) in fuse_vnop_setattr()
2355 if (!groupmember(old_va.va_gid, cred)) { in fuse_vnop_setattr()
/freebsd/sys/fs/p9fs/
H A Dp9fs_vnops.c816 error = vaccess(vp->v_type, vap.va_mode, vap.va_uid, vap.va_gid, accmode, in p9fs_access()
908 vap->va_gid = inode->n_gid; in p9fs_getattr_dotl()
1170 if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL) { in p9fs_setattr_dotl()
1172 vp, td, vap->va_uid, vap->va_gid); in p9fs_setattr_dotl()
1174 error = p9fs_chown(vp, vap->va_uid, vap->va_gid, cred, td); in p9fs_setattr_dotl()
1623 gid = vap->va_gid; in p9fs_symlink()
/freebsd/sys/fs/pseudofs/
H A Dpseudofs_vnops.c166 error = vaccess(vn->v_type, vattr.va_mode, vattr.va_uid, vattr.va_gid, in pfs_access()
260 vap->va_gid = proc->p_ucred->cr_rgid; in pfs_getattr()
263 vap->va_gid = 0; in pfs_getattr()
/freebsd/sys/fs/tarfs/
H A Dtarfs_io.c296 vap->va_gid = va.va_gid; in tarfs_zgetattr()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_acl.c1651 (uint64_t)vap->va_gid, cr, in zfs_acl_ids_create()
1653 gid = vap->va_gid; in zfs_acl_ids_create()
1662 (uint64_t)vap->va_gid, in zfs_acl_ids_create()
1664 gid = vap->va_gid; in zfs_acl_ids_create()
1666 !groupmember(vap->va_gid, cr) && in zfs_acl_ids_create()
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_vnops.c289 vap->va_gid = pmp->pm_gid; in msdosfs_getattr()
358 vap->va_uid, vap->va_gid); in msdosfs_setattr()
413 if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL) { in msdosfs_setattr()
422 gid = vap->va_gid; in msdosfs_setattr()
/freebsd/sys/fs/cd9660/
H A Dcd9660_vnops.c88 vap->va_gid != (gid_t)VNOVAL || vap->va_atime.tv_sec != VNOVAL || in cd9660_setattr()
189 vap->va_gid = (ip->i_mnt->im_flags & ISOFSMNT_GID) ? in cd9660_getattr()
/freebsd/sys/fs/smbfs/
H A Dsmbfs_node.c375 va->va_gid = smp->sm_gid; /* owner group id */ in smbfs_attr_cachelookup()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzfs_log.c766 if ((mask_applied & ATTR_GID) && IS_EPHEMERAL(vap->va_gid)) in zfs_log_setattr()
769 lr->lr_gid = (uint64_t)vap->va_gid; in zfs_log_setattr()

123