/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_policy.c | 262 ((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 D | dtfs_vnops.c | 69 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 D | dtfs_subr.c | 60 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 D | mac_bsdextended.c | 294 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 D | zfs_defs.c | 51 gid_t va_gid; /* owner group id */ member
|
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | vnode.h | 99 gid_t va_gid; /* owner gid */ member
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zpl_inode.c | 145 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 D | policy.c | 334 secpolicy_vnode_setids_setgids(cr, ovap->va_gid, in secpolicy_setid_setsticky_clear()
|
H A D | zfs_acl.c | 1808 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 D | union_subr.c | 666 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 D | union_vnops.c | 888 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 D | union_vfsops.c | 162 gid = va.va_gid; in unionfs_domount()
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clport.c | 421 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 D | nfs_clvnops.c | 1069 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 D | vnode.h | 196 if (vap->va_gid != (gid_t)VNOVAL) in vattr_init_mask()
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_internal.c | 206 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 D | fuse_vnops.c | 813 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 D | p9fs_vnops.c | 816 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 D | pseudofs_vnops.c | 166 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 D | tarfs_io.c | 296 vap->va_gid = va.va_gid; in tarfs_zgetattr()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_acl.c | 1651 (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 D | msdosfs_vnops.c | 289 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 D | cd9660_vnops.c | 88 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 D | smbfs_node.c | 375 va->va_gid = smp->sm_gid; /* owner group id */ in smbfs_attr_cachelookup()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_log.c | 766 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()
|