Lines Matching defs:acep
99 zfs_ace_v0_get_type(void *acep)
101 return (((zfs_oldace_t *)acep)->z_type);
105 zfs_ace_v0_get_flags(void *acep)
107 return (((zfs_oldace_t *)acep)->z_flags);
111 zfs_ace_v0_get_mask(void *acep)
113 return (((zfs_oldace_t *)acep)->z_access_mask);
117 zfs_ace_v0_get_who(void *acep)
119 return (((zfs_oldace_t *)acep)->z_fuid);
123 zfs_ace_v0_set_type(void *acep, uint16_t type)
125 ((zfs_oldace_t *)acep)->z_type = type;
129 zfs_ace_v0_set_flags(void *acep, uint16_t flags)
131 ((zfs_oldace_t *)acep)->z_flags = flags;
135 zfs_ace_v0_set_mask(void *acep, uint32_t mask)
137 ((zfs_oldace_t *)acep)->z_access_mask = mask;
141 zfs_ace_v0_set_who(void *acep, uint64_t who)
143 ((zfs_oldace_t *)acep)->z_fuid = who;
148 zfs_ace_v0_size(void *acep)
167 zfs_ace_v0_data(void *acep, void **datap)
189 zfs_ace_fuid_get_type(void *acep)
191 return (((zfs_ace_hdr_t *)acep)->z_type);
195 zfs_ace_fuid_get_flags(void *acep)
197 return (((zfs_ace_hdr_t *)acep)->z_flags);
201 zfs_ace_fuid_get_mask(void *acep)
203 return (((zfs_ace_hdr_t *)acep)->z_access_mask);
210 zfs_ace_t *acep = args;
212 entry_type = acep->z_hdr.z_flags & ACE_TYPE_FLAGS;
217 return (((zfs_ace_t *)acep)->z_fuid);
221 zfs_ace_fuid_set_type(void *acep, uint16_t type)
223 ((zfs_ace_hdr_t *)acep)->z_type = type;
227 zfs_ace_fuid_set_flags(void *acep, uint16_t flags)
229 ((zfs_ace_hdr_t *)acep)->z_flags = flags;
233 zfs_ace_fuid_set_mask(void *acep, uint32_t mask)
235 ((zfs_ace_hdr_t *)acep)->z_access_mask = mask;
241 zfs_ace_t *acep = arg;
243 uint16_t entry_type = acep->z_hdr.z_flags & ACE_TYPE_FLAGS;
248 acep->z_fuid = who;
252 zfs_ace_fuid_size(void *acep)
254 zfs_ace_hdr_t *zacep = acep;
266 (((zfs_ace_hdr_t *)acep)->z_flags & ACE_TYPE_FLAGS);
290 zfs_ace_fuid_data(void *acep, void **datap)
292 zfs_ace_t *zacep = acep;
300 zobjp = acep;
606 void *acep = aclp->z_next_ace;
612 ace_size = aclp->z_ops.ace_size(acep);
614 if (((caddr_t)acep + ace_size) >
619 *iflags = aclp->z_ops.ace_flags_get(acep);
620 *type = aclp->z_ops.ace_type_get(acep);
621 *access_mask = aclp->z_ops.ace_mask_get(acep);
622 *who = aclp->z_ops.ace_who_get(acep);
626 return ((void *)acep);
637 zfs_ace_hdr_t *acep = (zfs_ace_hdr_t *)(uintptr_t)cookie;
640 acep = zfs_acl_next_ace(aclp, acep, &who, mask,
642 return ((uint64_t)(uintptr_t)acep);
665 ace_t *acep = datap;
670 aceptr->z_hdr.z_access_mask = acep->a_access_mask;
671 aceptr->z_hdr.z_flags = acep->a_flags;
672 aceptr->z_hdr.z_type = acep->a_type;
676 aceptr->z_fuid = zfs_fuid_create(zfsvfs, acep->a_who,
688 switch (acep->a_type) {
694 aceobjp = (ace_object_t *)acep;
701 acep = (ace_t *)((caddr_t)acep + sizeof (ace_object_t));
704 acep = (ace_t *)((caddr_t)acep + sizeof (ace_t));
727 ace_t *acep = datap;
745 objacep = (ace_object_t *)acep;
763 acep->a_who = zfs_fuid_map_id(zfsvfs, who,
767 acep->a_who = (uid_t)(int64_t)who;
769 acep->a_access_mask = access_mask;
770 acep->a_flags = iflags;
771 acep->a_type = type;
772 acep = (ace_t *)((caddr_t)acep + ace_size);
777 zfs_copy_ace_2_oldace(vtype_t obj_type, zfs_acl_t *aclp, ace_t *acep,
784 aceptr->z_access_mask = acep[i].a_access_mask;
785 aceptr->z_type = acep[i].a_type;
786 aceptr->z_flags = acep[i].a_flags;
787 aceptr->z_fuid = acep[i].a_who;
873 zfs_set_ace(zfs_acl_t *aclp, void *acep, uint32_t access_mask,
878 aclp->z_ops.ace_mask_set(acep, access_mask);
879 aclp->z_ops.ace_type_set(acep, access_type);
880 aclp->z_ops.ace_flags_set(acep, entry_type);
883 aclp->z_ops.ace_who_set(acep, fuid);
897 zfs_ace_hdr_t *acep = NULL;
905 while (acep = zfs_acl_next_ace(aclp, acep, &who,
1339 zfs_acl_prepend_fixup(zfs_acl_t *aclp, void *acep, void *origacep,
1348 aceflags = aclp->z_ops.ace_flags_get(acep);
1349 fuid = aclp->z_ops.ace_who_get(acep);
1351 acepmask = aclp->z_ops.ace_mask_get(acep);
1397 aclp->z_ops.ace_mask_set(acep, acepmask);
1403 void *acep = NULL;
1442 while (acep = zfs_acl_next_ace(aclp, acep, &who, &access_mask,
1487 ace_size = aclp->z_ops.ace_size(acep);
1525 zfs_restricted_update(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, void *acep)
1527 uint32_t mask = aclp->z_ops.ace_mask_get(acep);
1530 (aclp->z_ops.ace_type_get(acep) == ALLOW)) {
1532 aclp->z_ops.ace_mask_set(acep, mask);
1560 void *acep;
1621 acep = aclnode->z_acldata;
1623 zfs_set_ace(aclp, acep, access_mask, type,
1630 VERIFY((data2sz = aclp->z_ops.ace_data(acep,
1638 newflags = aclp->z_ops.ace_flags_get(acep);
1645 aclp->z_ops.ace_flags_set(acep,
1647 zfs_restricted_update(zfsvfs, aclp, acep);
1660 aclp->z_ops.ace_flags_set(acep,
1664 aclp->z_ops.ace_flags_set(acep,
2157 zfs_ace_hdr_t *acep = NULL;
2174 while (acep = zfs_acl_next_ace(aclp, acep, &who, &access_mask,
2229 zfs_ace_hdr_t *, acep,
2235 zfs_ace_hdr_t *, acep,