Searched refs:vsecattr (Results 1 - 15 of 15) sorted by relevance

/illumos-gate/usr/src/uts/common/syscall/
H A Dacl.c133 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 Dfs_subr.c608 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 Dsmb_acl.c851 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 Dsmb_vops.c1199 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 Dsmb_fsops.c127 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 Dufs_acl.c420 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 Dfake_vop.c1068 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 Ddevfs_vnops.c612 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 Dzfs_context.h448 typedef struct vsecattr { struct
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_vnops.c489 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 Dnfs_vnops.c4964 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 Dnfs4_vnops.c12276 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 Dnfs3_vnops.c6616 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 Dvnode.h750 typedef struct vsecattr { struct
/illumos-gate/usr/src/uts/common/sys/
H A Dvnode.h763 typedef struct vsecattr { struct

Completed in 737 milliseconds