Home
last modified time | relevance | path

Searched refs:va_uid (Results 1 – 25 of 82) sorted by relevance

1234

/titanic_44/usr/src/uts/common/syscall/
H A Dchown.c68 vattr.va_uid = uid; in fchownat()
71 if (vattr.va_uid != -1) in fchownat()
H A Dstat.c236 sb.st_uid = vattr.va_uid; in cstat()
359 sb.st_uid = vattr.va_uid; in cstat32()
467 lsb.st_uid = vattr.va_uid; in cstat64()
586 lsb.st_uid = vattr.va_uid; in cstat64_32()
/titanic_44/usr/src/uts/common/sys/fs/
H A Ddv_node.h132 (!((attrp->va_uid == mp.mp_uid) && \
140 attr.va_uid = mp.mp_uid; \
146 attrp->va_uid = mp.mp_uid; \
H A Dtmpnode.h109 #define tn_uid tn_attr.va_uid
H A Dcachefs_fs.h258 (out_vattrp)->va_uid = (in_vattrp)->va_uid; \
281 (out_vattrp)->va_uid = (in_vattrp)->va_uid; \
/titanic_44/usr/src/uts/common/fs/dev/
H A Dsdev_ptsops.c145 if (dv->sdev_attr->va_uid != uid || dv->sdev_attr->va_gid != gid) { in devpts_validate()
146 dv->sdev_attr->va_uid = uid; in devpts_validate()
206 vap->va_uid = uid; in devpts_create_rvp()
385 vap->va_uid, vap->va_gid); in devpts_set_id()
/titanic_44/usr/src/uts/common/fs/devfs/
H A Ddevfs_vnops.c207 vap->va_uid = 0; in devfs_getattr()
262 map->va_uid = vap->va_uid; in devfs_setattr_dir()
327 if (map->va_uid != mp->mp_uid) in dv_setattr_cmp()
431 mp.mp_uid = dv_vattr_file.va_uid; in devfs_setattr()
491 map->va_uid = vap->va_uid; in devfs_setattr()
534 dv->dv_name, vap->va_uid)); in devfs_setattr()
712 uid_t owner = dv->dv_attr->va_uid; in devfs_unlocked_access()
/titanic_44/usr/src/uts/common/fs/namefs/
H A Dnamevno.c248 if (crgetuid(crp) != nodep->nm_vattr.va_uid) { in nm_access_unlocked()
255 nodep->nm_vattr.va_uid, nodep->nm_vattr.va_mode << shift, in nm_access_unlocked()
310 nmvap->va_uid = vap->va_uid; in nm_setattr()
H A Dnamevfs.c412 if (error = secpolicy_vnode_owner(crp, vattrp->va_uid)) in nm_mount()
419 if (secpolicy_vnode_access2(crp, mvp, vattrp->va_uid, vattrp->va_mode, in nm_mount()
573 if (secpolicy_vnode_owner(crp, nodep->nm_vattr.va_uid) != 0) { in nm_unmount()
/titanic_44/usr/src/uts/common/os/
H A Dpolicy.c727 if ((err = secpolicy_vnode_owner(cr, va.va_uid)) != 0) in secpolicy_fs_common()
730 if (secpolicy_vnode_access2(cr, mvp, va.va_uid, va.va_mode, in secpolicy_fs_common()
1249 (vap->va_mask & AT_UID) != 0 && vap->va_uid == 0) != 0) { in secpolicy_setid_clear()
1263 ovap->va_uid)) != 0) { in secpolicy_setid_setsticky_clear()
1421 if ((error = secpolicy_vnode_setdac(cr, ovap->va_uid)) != 0) in secpolicy_vnode_setattr()
1449 if (cr->cr_uid != ovap->va_uid) { in secpolicy_vnode_setattr()
1452 if (((mask & AT_UID) && vap->va_uid != ovap->va_uid) || in secpolicy_vnode_setattr()
1462 (error = secpolicy_vnode_chown(cr, ovap->va_uid)) != 0) { in secpolicy_vnode_setattr()
1480 if (cr->cr_uid != ovap->va_uid) { in secpolicy_vnode_setattr()
1498 error = secpolicy_xvattr((xvattr_t *)vap, ovap->va_uid, cr, in secpolicy_vnode_setattr()
/titanic_44/usr/src/uts/common/fs/objfs/
H A Dobjfs_common.c79 vap->va_uid = 0; in objfs_common_getattr()
/titanic_44/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv_readdir.c1223 va.va_uid, &owner, TRUE); in rfs4_op_readdir()
1226 lastuid = va.va_uid; in rfs4_op_readdir()
1228 } else if (va.va_uid != lastuid) { in rfs4_op_readdir()
1236 va.va_uid, &owner, TRUE); in rfs4_op_readdir()
1238 lastuid = va.va_uid; in rfs4_op_readdir()
H A Dnfs_srv.c265 if (crgetuid(cr) == bva.va_uid && !error && in rfs_setattr()
716 if (crgetuid(cr) != va.va_uid) { in rfs_read()
968 if (crgetuid(cr) != va.va_uid) { in rfs_write_sync()
1434 if (crgetuid(rp->cr) != va.va_uid) { in rfs_write()
2722 vap->va_uid = sa->sa_uid; in sattr_to_vattr()
2785 if (vap->va_uid == (unsigned short)(-1)) in vattr_to_nattr()
2787 else if (vap->va_uid == UID_NOBODY) in vattr_to_nattr()
2790 na->na_uid = vap->va_uid; in vattr_to_nattr()
H A Dnfs4_attr.c91 if (*errorp = nfs_idmap_uid_str(vap->va_uid, &nap->owner, in nfs4_ver_fattr4_attr()
180 if (*errorp = nfs_idmap_uid_str(vap->va_uid, &nap->owner, in nfs4_set_fattr4_attr()
H A Dnfs4_srv_attr.c1022 vap->va_uid, vap->va_gid, TRUE); in rfs4_fattr4_acl()
1032 vap->va_uid, vap->va_gid, vp->v_type == VDIR, TRUE); in rfs4_fattr4_acl()
2059 error = nfs_idmap_uid_str(sarg->vap->va_uid, &na->owner, TRUE); in rfs4_fattr4_owner()
2084 error = nfs_idmap_str_uid(&na->owner, &sarg->vap->va_uid, TRUE); in rfs4_fattr4_owner()
2130 else if (sarg->vap->va_uid != uid) in rfs4_fattr4_owner()
H A Dnfs3_xdr.c605 vap->va_uid = (uid_t)IXDR_GET_U_INT32(ptr); in xdr_fattr3_to_vattr()
606 if (vap->va_uid == NFS_UID_NOBODY) in xdr_fattr3_to_vattr()
607 vap->va_uid = UID_NOBODY; in xdr_fattr3_to_vattr()
680 xdr_u_int(xdrs, (uint_t *)&vap->va_uid) && in xdr_fattr3_to_vattr()
758 if (vap->va_uid == NFS_UID_NOBODY) in xdr_fattr3_to_vattr()
759 vap->va_uid = UID_NOBODY; in xdr_fattr3_to_vattr()
/titanic_44/usr/src/uts/common/fs/doorfs/
H A Ddoor_vnops.c157 vap->va_uid = 0; /* owner user id */ in door_getattr()
/titanic_44/usr/src/uts/common/fs/cachefs/
H A Dcachefs_fscache.c809 attrp->va_uid = 0; in fscdir_create()
830 attrp->va_uid = 0; in fscdir_create()
880 attrp->va_uid = 0; in fscdir_create()
/titanic_44/usr/src/uts/common/fs/
H A Dxattr.c344 if (xvattr.xva_vattr.va_uid > MAXUID) { in xattr_fill_nvlist()
350 if (kidmap_getsidbyuid(crgetzone(cr), xvattr.xva_vattr.va_uid, in xattr_fill_nvlist()
434 vap->va_uid = 0; in xattr_file_getattr()
694 rid, &xvattr.xva_vattr.va_uid); in xattr_file_write()
/titanic_44/usr/src/uts/common/fs/sharefs/
H A Dsharefs_vnops.c193 vap->va_uid = 0; in sharefs_getattr()
/titanic_44/usr/src/uts/common/fs/tmpfs/
H A Dtmp_tnode.c177 t->tn_uid = vap->va_uid; in tmpnode_init()
/titanic_44/usr/src/uts/common/fs/smbsrv/
H A Dsmb_fsops.c201 set_attr.sa_vattr.va_uid = fs_sd->sd_uid; in smb_fsop_create_with_sd()
410 attr->sa_vattr.va_uid = fattr.sa_vattr.va_uid; in smb_fsop_create_stream()
2170 fs_sd->sd_uid = attr.sa_vattr.va_uid; in smb_fsop_sdread()
2304 set_attr.sa_vattr.va_uid = fs_sd->sd_uid; in smb_fsop_sdwrite()
/titanic_44/usr/src/uts/common/fs/ctfs/
H A Dctfs_root.c380 vap->va_uid = 0; in ctfs_common_getattr()
/titanic_44/usr/src/uts/common/fs/portfs/
H A Dport_vnops.c323 vap->va_uid = pp->port_uid; /* owner user id */ in port_getattr()
/titanic_44/usr/src/uts/common/fs/zfs/
H A Dzfs_log.c618 if ((mask_applied & AT_UID) && IS_EPHEMERAL(vap->va_uid)) in zfs_log_setattr()
621 lr->lr_uid = (uint64_t)vap->va_uid; in zfs_log_setattr()

1234