Lines Matching refs:vsecattr

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->vsa_aclentp;
652 } else if (vsecattr->vsa_mask & (VSA_ACECNT | VSA_ACE)) {
654 (vp->v_type == VDIR), (ace_t **)&vsecattr->vsa_aclentp,
655 &vsecattr->vsa_aclcnt));
656 vsecattr->vsa_aclentsz = vsecattr->vsa_aclcnt * sizeof (ace_t);
768 vsecattr_t vsecattr;
780 vsecattr.vsa_aclentp = NULL;
781 vsecattr.vsa_dfaclentp = NULL;
782 vsecattr.vsa_aclcnt = 0;
783 vsecattr.vsa_dfaclcnt = 0;
790 vsecattr.vsa_mask = VSA_ACLCNT | VSA_DFACLCNT;
793 vsecattr.vsa_mask = VSA_ACECNT | VSA_ACE;
796 ASSERT(vsecattr.vsa_mask && acl_flavor);
797 error = VOP_GETSECATTR(vp, &vsecattr, 0, cr, NULL);
812 if (vsecattr.vsa_aclcnt > MIN_ACL_ENTRIES)
814 if (vsecattr.vsa_aclcnt && vsecattr.vsa_aclentp != NULL)
815 kmem_free(vsecattr.vsa_aclentp,
816 vsecattr.vsa_aclcnt * sizeof (aclent_t));
817 if (vsecattr.vsa_dfaclcnt && vsecattr.vsa_dfaclentp != NULL)
818 kmem_free(vsecattr.vsa_dfaclentp,
819 vsecattr.vsa_dfaclcnt * sizeof (aclent_t));
822 isnontrivial = ace_trivial(vsecattr.vsa_aclentp,
823 vsecattr.vsa_aclcnt);
825 if (vsecattr.vsa_aclcnt && vsecattr.vsa_aclentp != NULL)
826 kmem_free(vsecattr.vsa_aclentp,
827 vsecattr.vsa_aclcnt * sizeof (ace_t));
828 /* ACE has no vsecattr.vsa_dfaclcnt */