/illumos-gate/usr/src/uts/common/syscall/ |
H A D | acl.c | 133 vsecattr_t vsecattr; local 138 bzero(&vsecattr, sizeof (vsecattr_t)); 146 vsecattr.vsa_mask = VSA_ACLCNT | VSA_DFACLCNT; 149 vsecattr.vsa_mask = VSA_ACECNT; 151 if (error = VOP_GETSECATTR(vp, &vsecattr, 0, CRED(), NULL)) 153 *rv = vsecattr.vsa_aclcnt + vsecattr.vsa_dfaclcnt; 154 if (vsecattr.vsa_aclcnt && vsecattr.vsa_aclentp) { 155 kmem_free(vsecattr [all...] |
/illumos-gate/usr/src/uts/common/fs/ |
H A D | fs_subr.c | 608 vsecattr_t *vsecattr, 618 vsecattr->vsa_aclcnt = 0; 619 vsecattr->vsa_aclentsz = 0; 620 vsecattr->vsa_aclentp = NULL; 621 vsecattr->vsa_dfaclcnt = 0; /* Default ACLs are not fabricated */ 622 vsecattr->vsa_dfaclentp = NULL; 628 if (vsecattr->vsa_mask & (VSA_ACLCNT | VSA_ACL)) { 630 vsecattr->vsa_aclcnt = 4; /* USER, GROUP, OTHER, and CLASS */ 631 vsecattr->vsa_aclentp = kmem_zalloc(aclsize, KM_SLEEP); 632 aclentp = vsecattr 606 fs_fab_acl( vnode_t *vp, vsecattr_t *vsecattr, int flag, cred_t *cr, caller_context_t *ct) argument 768 vsecattr_t vsecattr; local [all...] |
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_acl.c | 851 smb_fsacl_from_vsa(vsecattr_t *vsecattr, acl_type_t acl_type) argument 858 ASSERT(vsecattr); 869 numacls = vsecattr->vsa_aclcnt + vsecattr->vsa_dfaclcnt; 870 aclbsize = vsecattr->vsa_aclcnt * sizeof (aclent_t); 871 dfaclbsize = vsecattr->vsa_dfaclcnt * sizeof (aclent_t); 876 (void) memcpy(acl_info->acl_aclp, vsecattr->vsa_aclentp, 879 vsecattr->vsa_dfaclentp, dfaclbsize); 887 aclbsize = vsecattr->vsa_aclcnt * sizeof (ace_t); 888 acl_info->acl_cnt = vsecattr 922 smb_fsacl_to_vsa(acl_t *acl_info, vsecattr_t *vsecattr, int *aclbsize) argument [all...] |
H A D | smb_vops.c | 1199 vsecattr_t vsecattr; local 1205 bzero(&vsecattr, sizeof (vsecattr_t)); 1209 vsecattr.vsa_mask = VSA_ACL | VSA_ACLCNT | VSA_DFACL | 1214 vsecattr.vsa_mask = VSA_ACE | VSA_ACECNT | VSA_ACE_ACLFLAGS; 1221 if (error = VOP_GETSECATTR(vp, &vsecattr, flags, cr, &smb_ct)) 1224 *aclp = smb_fsacl_from_vsa(&vsecattr, acl_type); 1240 vsecattr_t vsecattr; local 1246 error = smb_fsacl_to_vsa(aclp, &vsecattr, &aclbsize); 1250 error = VOP_SETSECATTR(vp, &vsecattr, flags, cr, &smb_ct); 1254 if (aclbsize && vsecattr [all...] |
H A D | smb_fsops.c | 127 vsecattr_t vsecattr; local 161 rc = smb_fsacl_to_vsa(acl, &vsecattr, &aclbsize); 169 vsap = &vsecattr;
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_acl.c | 420 vsecattr_t vsecattr = { local 504 * Result is a vsecattr struct which we then convert to the 507 bzero((caddr_t)&vsecattr, sizeof (vsecattr_t)); 516 numacls = vsecattr.vsa_aclcnt = 519 aclp = vsecattr.vsa_aclentp = 531 numacls = vsecattr.vsa_dfaclcnt = 534 aclp = vsecattr.vsa_dfaclentp = 548 if (vsecattr.vsa_aclentp) { 549 ksort((caddr_t)vsecattr.vsa_aclentp, vsecattr [all...] |
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_vop.c | 1068 vsecattr_t *vsecattr, 1074 vsecattr->vsa_aclcnt = 0; 1075 vsecattr->vsa_aclentsz = 0; 1076 vsecattr->vsa_aclentp = NULL; 1077 vsecattr->vsa_dfaclcnt = 0; /* Default ACLs are not fabricated */ 1078 vsecattr->vsa_dfaclentp = NULL; 1080 if (vsecattr->vsa_mask & (VSA_ACLCNT | VSA_ACL)) { 1085 vsecattr->vsa_aclcnt = 1; 1086 vsecattr->vsa_aclentp = kmem_zalloc(aclsize, KM_SLEEP); 1087 aclentp = vsecattr 1066 fop_getsecattr( vnode_t *vp, vsecattr_t *vsecattr, int flag, cred_t *cr, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/devfs/ |
H A D | devfs_vnops.c | 612 devfs_getsecattr(struct vnode *vp, struct vsecattr *vsap, int flags, 646 devfs_setsecattr(struct vnode *vp, struct vsecattr *vsap, int flags,
|
/illumos-gate/usr/src/lib/libzpool/common/sys/ |
H A D | zfs_context.h | 448 typedef struct vsecattr { struct
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_vnops.c | 489 sdev_getsecattr(struct vnode *vp, struct vsecattr *vsap, int flags, 514 sdev_setsecattr(struct vnode *vp, struct vsecattr *vsap, int flags,
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_vnops.c | 4964 nfs_setsecattr(vnode_t *vp, vsecattr_t *vsecattr, int flag, cred_t *cr, argument 4975 error = acl_setacl2(vp, vsecattr, flag, cr); 4985 nfs_getsecattr(vnode_t *vp, vsecattr_t *vsecattr, int flag, cred_t *cr, argument 4996 error = acl_getacl2(vp, vsecattr, flag, cr); 5001 return (fs_fab_acl(vp, vsecattr, flag, cr, ct));
|
H A D | nfs4_vnops.c | 12276 nfs4_setsecattr(vnode_t *vp, vsecattr_t *vsecattr, int flag, cred_t *cr, argument 12293 error = nfs4_is_acl_mask_valid(vsecattr->vsa_mask, 12298 if (vsecattr->vsa_mask & (VSA_ACL | VSA_DFACL)) { 12302 error = vs_aent_to_ace4(vsecattr, &nfsace4_vsap, 12310 error = vs_acet_to_ace4(vsecattr, &nfsace4_vsap, 12325 nfs4_getsecattr(vnode_t *vp, vsecattr_t *vsecattr, int flag, cred_t *cr, argument 12338 gar.n4g_vsa.vsa_mask = vsecattr->vsa_mask; 12341 * vsecattr->vsa_mask holds the original acl request mask. 12345 error = nfs4_is_acl_mask_valid(vsecattr->vsa_mask, NFS4_ACL_GET); 12353 return (fs_fab_acl(vp, vsecattr, fla [all...] |
H A D | nfs3_vnops.c | 6616 nfs3_setsecattr(vnode_t *vp, vsecattr_t *vsecattr, int flag, cred_t *cr, argument 6628 error = acl_setacl3(vp, vsecattr, flag, cr); 6638 nfs3_getsecattr(vnode_t *vp, vsecattr_t *vsecattr, int flag, cred_t *cr, argument 6650 error = acl_getacl3(vp, vsecattr, flag, cr); 6655 return (fs_fab_acl(vp, vsecattr, flag, cr, ct));
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/sys/ |
H A D | vnode.h | 750 typedef struct vsecattr { struct
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | vnode.h | 763 typedef struct vsecattr { struct
|