Lines Matching refs:ace
185 smb_ace_t *ace)
189 if ((m_ace == NULL) || (ace == NULL))
192 bcopy(&ace->se_hdr, &m_ace->header, sizeof (mslm_ace_hdr_t));
194 m_ace->mask = LE_IN32(&ace->se_mask);
196 if ((ace->se_sid == NULL) || (m_sid == NULL))
198 bcopy(ace->se_sid, m_sid, smb_sid_len(ace->se_sid));
244 smb_ace_t *ace;
293 ace = sd->sd_sacl->sl_aces;
298 for (i = 0; i < ace_cnt; i++, ace++) {
305 status = srvsvc_ace_set_relative(m_ace, m_sid, ace);
308 offset += smb_sid_len(ace->se_sid);
319 ace = sd->sd_dacl->sl_aces;
324 for (i = 0; i < ace_cnt; i++, ace++) {
331 status = srvsvc_ace_set_relative(m_ace, m_sid, ace);
334 offset += smb_sid_len(ace->se_sid);
349 smb_ace_t *ace)
355 if ((m_ace == NULL) || (ace == NULL) || (m_sid == NULL))
358 bzero(ace, sizeof (smb_ace_t));
359 bcopy(&m_ace->header, &ace->se_hdr, sizeof (mslm_ace_hdr_t));
360 ace->se_hdr.se_bsize = LE_IN16(&ace->se_hdr.se_bsize);
361 ace->se_mask = LE_IN32(&m_ace->mask);
364 if ((ace->se_sid = malloc(sid_size)) == NULL)
366 bcopy(m_sid, ace->se_sid, sid_size);
368 smb_sid = ace->se_sid;
418 smb_ace_t *ace;
463 ace = sd->sd_sacl->sl_aces;
466 for (i = 0; i < ace_cnt; i++, ace++) {
473 status = srvsvc_ace_set_absolute(m_ace, m_sid, ace);
476 offset += smb_sid_len(ace->se_sid);
487 ace = sd->sd_dacl->sl_aces;
489 for (i = 0; i < ace_cnt; i++, ace++) {
496 status = srvsvc_ace_set_absolute(m_ace, m_sid, ace);
499 offset += smb_sid_len(ace->se_sid);