Lines Matching refs:sid

90 ifree_sid(i_ntsid_t *sid)  in ifree_sid()  argument
94 if (sid == NULL) in ifree_sid()
97 sz = I_SID_SIZE(sid->sid_subauthcount); in ifree_sid()
98 FREESZ(sid, sz); in ifree_sid()
104 i_ntsid_t *sid = NULL; in md_get_sid() local
117 if ((sid = MALLOC(sidsz)) == NULL) in md_get_sid()
120 bzero(sid, sidsz); in md_get_sid()
121 sid->sid_revision = revision; in md_get_sid()
122 sid->sid_subauthcount = subauthcount; in md_get_sid()
123 ERRCHK(md_get_mem(mdp, sid->sid_authority, 6, MB_MSYSTEM)); in md_get_sid()
125 subauthp = &sid->sid_subauthvec[0]; in md_get_sid()
132 *sidp = sid; in md_get_sid()
136 ifree_sid(sid); in md_get_sid()
141 mb_put_sid(mbchain_t *mbp, i_ntsid_t *sid) in mb_put_sid() argument
146 if (sid == NULL) in mb_put_sid()
149 ERRCHK(mb_put_uint8(mbp, sid->sid_revision)); in mb_put_sid()
150 ERRCHK(mb_put_uint8(mbp, sid->sid_subauthcount)); in mb_put_sid()
151 ERRCHK(mb_put_mem(mbp, sid->sid_authority, 6, MB_MSYSTEM)); in mb_put_sid()
153 subauthp = &sid->sid_subauthvec[0]; in mb_put_sid()
154 for (i = 0; i < sid->sid_subauthcount; i++) { in mb_put_sid()
657 smbfs_sid2str(i_ntsid_t *sid, in smbfs_sid2str() argument
665 n = snprintf(s, osz, "S-%u", sid->sid_revision); in smbfs_sid2str()
671 auth = (auth << 8) | sid->sid_authority[i]; in smbfs_sid2str()
677 subs = sid->sid_subauthcount; in smbfs_sid2str()
683 ip = &sid->sid_subauthvec[0]; in smbfs_sid2str()
765 i_ntsid_t *sid, in mkrq_idmap_sid2ux() argument
773 if (smbfs_sid2str(sid, strbuf, sizeof (strbuf), &rid) < 0) in mkrq_idmap_sid2ux()
1166 i_ntsid_t *sid = NULL; in smbfs_str2sid() local
1209 sid = MALLOC(size); in smbfs_str2sid()
1210 if (sid == NULL) in smbfs_str2sid()
1212 bzero(sid, size); in smbfs_str2sid()
1215 sid->sid_revision = 1; in smbfs_str2sid()
1216 sid->sid_subauthcount = sacnt; in smbfs_str2sid()
1218 sid->sid_authority[i] = auth & 0xFF; in smbfs_str2sid()
1243 sid->sid_subauthvec[i] = (uint32_t)sa; in smbfs_str2sid()
1249 sid->sid_subauthvec[i] = *ridp; in smbfs_str2sid()
1254 FREESZ(sid, size); in smbfs_str2sid()
1256 *osidp = sid; in smbfs_str2sid()
1354 i_ntsid_t *sid = NULL; in zace2ntace() local
1378 error = smbfs_str2sid(mip->mi_dsid, &mip->mi_rid, &sid); in zace2ntace()
1387 ifree_sid(sid); in zace2ntace()
1396 ntace->ace_v2.ace_sid = sid; in zace2ntace()