Home
last modified time | relevance | path

Searched refs:acep (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/common/acl/
H A Dacl_common.c515 ace_t *acep, *result = NULL; in ln_aent_to_ace() local
543 acep = result; in ln_aent_to_ace()
556 acep->a_type = ACE_ACCESS_DENIED_ACE_TYPE; in ln_aent_to_ace()
557 acep->a_flags = 0; in ln_aent_to_ace()
559 acep->a_who = (uid_t)-1; in ln_aent_to_ace()
560 acep->a_flags |= in ln_aent_to_ace()
563 acep->a_who = aclent[i].a_id; in ln_aent_to_ace()
565 acep->a_who = aclent[i].a_id; in ln_aent_to_ace()
566 acep->a_flags |= ACE_IDENTIFIER_GROUP; in ln_aent_to_ace()
569 acep->a_flags |= ACE_INHERIT_ONLY_ACE | in ln_aent_to_ace()
[all …]
H A Dacl_common.h49 extern int ace_trivial(ace_t *acep, int aclcnt);
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_acl.c109 zfs_ace_v0_get_type(void *acep) in zfs_ace_v0_get_type() argument
111 return (((zfs_oldace_t *)acep)->z_type); in zfs_ace_v0_get_type()
115 zfs_ace_v0_get_flags(void *acep) in zfs_ace_v0_get_flags() argument
117 return (((zfs_oldace_t *)acep)->z_flags); in zfs_ace_v0_get_flags()
121 zfs_ace_v0_get_mask(void *acep) in zfs_ace_v0_get_mask() argument
123 return (((zfs_oldace_t *)acep)->z_access_mask); in zfs_ace_v0_get_mask()
127 zfs_ace_v0_get_who(void *acep) in zfs_ace_v0_get_who() argument
129 return (((zfs_oldace_t *)acep)->z_fuid); in zfs_ace_v0_get_who()
133 zfs_ace_v0_set_type(void *acep, uint16_t type) in zfs_ace_v0_set_type() argument
135 ((zfs_oldace_t *)acep)->z_type = type; in zfs_ace_v0_set_type()
[all …]
H A Dzfs_byteswap.c55 ace_t *acep; in zfs_ace_byteswap() local
91 acep = (ace_t *)ptr; in zfs_ace_byteswap()
92 acep->a_access_mask = BSWAP_32(acep->a_access_mask); in zfs_ace_byteswap()
93 acep->a_flags = BSWAP_16(acep->a_flags); in zfs_ace_byteswap()
94 ace_type = acep->a_type = BSWAP_16(acep->a_type); in zfs_ace_byteswap()
95 acep->a_who = BSWAP_32(acep->a_who); in zfs_ace_byteswap()
96 entry_type = acep->a_flags & ACE_TYPE_FLAGS; in zfs_ace_byteswap()
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dzfs_acl.h127 uint32_t (*ace_mask_get) (void *acep); /* get access mask */
128 void (*ace_mask_set) (void *acep,
130 uint16_t (*ace_flags_get) (void *acep); /* get flags */
131 void (*ace_flags_set) (void *acep,
133 uint16_t (*ace_type_get)(void *acep); /* get type */
134 void (*ace_type_set)(void *acep,
136 uint64_t (*ace_who_get)(void *acep); /* get who/fuid */
137 void (*ace_who_set)(void *acep,
139 size_t (*ace_size)(void *acep); /* how big is this ace */
143 int (*ace_data)(void *acep, void **datap);
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_acl.c573 nfsace4 *acep, *result = NULL; in ln_aent_to_ace4() local
598 result = acep = kmem_zalloc(resultsize * sizeof (nfsace4), KM_SLEEP); in ln_aent_to_ace4()
611 acep->type = ACE4_ACCESS_DENIED_ACE_TYPE; in ln_aent_to_ace4()
612 acep->flag = 0; in ln_aent_to_ace4()
614 (void) str_to_utf8(ACE4_WHO_GROUP, &acep->who); in ln_aent_to_ace4()
615 acep->flag |= ACE4_IDENTIFIER_GROUP; in ln_aent_to_ace4()
640 &acep->who, isserver); in ln_aent_to_ace4()
657 &acep->who, isserver); in ln_aent_to_ace4()
658 acep->flag |= ACE4_IDENTIFIER_GROUP; in ln_aent_to_ace4()
667 acep->flag |= ACE4_INHERIT_ONLY_ACE | in ln_aent_to_ace4()
[all …]
H A Dnfs4_state.c190 nfsace4 *acep; in deep_open_free() local
198 acep = &res->delegation.open_delegation4_u.read.permissions; in deep_open_free()
201 acep = &res->delegation.open_delegation4_u.write.permissions; in deep_open_free()
205 if (acep->who.utf8string_val) { in deep_open_free()
206 kmem_free(acep->who.utf8string_val, acep->who.utf8string_len); in deep_open_free()
207 acep->who.utf8string_val = NULL; in deep_open_free()
/illumos-gate/usr/src/lib/libsec/common/
H A Daclcheck.c302 ace_t *acep; in ace_aclcheck() local
313 for (i = 0, acep = aclp->acl_aclp; in ace_aclcheck()
314 i != aclp->acl_cnt && error == 0; i++, acep++) { in ace_aclcheck()
315 switch (acep->a_flags & 0xf040) { in ace_aclcheck()
331 if (acep->a_flags & in ace_aclcheck()
333 if ((acep->a_flags & (ACE_FILE_INHERIT_ACE| in ace_aclcheck()
341 switch (acep->a_type) { in ace_aclcheck()
351 if (acep->a_access_mask > ACE_ALL_PERMS) { in ace_aclcheck()
H A Dacltext.c410 ace_type_txt(dynaclstr_t *dynstr, ace_t *acep, int flags) in ace_type_txt() argument
416 switch (acep->a_flags & ACE_TYPE_FLAGS) { in ace_type_txt()
426 if ((flags & ACL_SID_FMT) && acep->a_who > MAXUID) { in ace_type_txt()
430 if (error = getsidname(acep->a_who, B_FALSE, in ace_type_txt()
437 error = str_append(dynstr, prgname(acep->a_who, idp, in ace_type_txt()
449 if ((flags & ACL_SID_FMT) && acep->a_who > MAXUID) { in ace_type_txt()
452 if (error = getsidname(acep->a_who, B_TRUE, in ace_type_txt()
459 error = str_append(dynstr, pruname(acep->a_who, idp, in ace_type_txt()
1064 ace_t *acep; in ace_compact_printacl() local
1078 for (cnt = 0, acep = aclp->acl_aclp; in ace_compact_printacl()
[all …]
H A Daclutils.c69 ace_t *acep; in acl_trivial() local
81 acep = malloc(sizeof (ace_t) * aclcnt); in acl_trivial()
82 if (acep == NULL) in acl_trivial()
85 aclcnt, acep) < 0) { in acl_trivial()
86 free(acep); in acl_trivial()
90 val = ace_trivial(acep, aclcnt); in acl_trivial()
91 free(acep); in acl_trivial()
H A Dacl.y85 ace_t *acep; variable
113 acep = $$->acl_aclp;
114 acep[$$->acl_cnt] = $1;
/illumos-gate/usr/src/common/smbclnt/
H A Dsmbfs_ntacl.c192 md_get_ace(mdchain_t *mdp, i_ntace_t **acep) in md_get_ace() argument
243 *acep = ace; in md_get_ace()
312 i_ntace_t **acep; in ifree_acl() local
319 acep = &acl->acl_acevec[0]; in ifree_acl()
321 ifree_ace(*acep); in ifree_acl()
322 acep++; in ifree_acl()
332 i_ntace_t **acep; in md_get_acl() local
356 acep = &acl->acl_acevec[0]; in md_get_acl()
358 ERRCHK(md_get_ace(mdp, acep)); in md_get_acl()
359 acep++; in md_get_acl()
[all …]
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_token.c905 au_to_ace(ace_t *acep) in au_to_ace() argument
916 adr_uint32(&adr, &(acep->a_who), 1); in au_to_ace()
917 adr_uint32(&adr, &(acep->a_access_mask), 1); in au_to_ace()
918 adr_ushort(&adr, &(acep->a_flags), 1); in au_to_ace()
919 adr_ushort(&adr, &(acep->a_type), 1); in au_to_ace()
/illumos-gate/usr/src/cmd/ls/
H A Dls.c1736 acl_t *acep = p->aclp; in grp_mask_to_mode() local
1738 acecnt = acl_cnt(acep); in grp_mask_to_mode()
1739 for (ap = (ace_t *)acl_data(acep); acecnt--; ap++) { in grp_mask_to_mode()
/illumos-gate/usr/src/cmd/mdb/common/modules/zfs/
H A Dzfs.c3964 ace_t *acep; in zfs_aces_walk_step() local
3981 acep = (ace_t *)&zace; in zfs_aces_walk_step()
3982 entry_type = acep->a_flags & ACE_TYPE_FLAGS; in zfs_aces_walk_step()
3983 allow_type = acep->a_type; in zfs_aces_walk_step()