Lines Matching refs:sid
95 if (avc_has_perm(subj->sid, obj->sid, class, mode, &subj->aeref, in SELinuxDoCheck()
154 if (avc_context_to_sid_raw(ctx, &subj->sid) < 0) in SELinuxLabelClient()
158 obj->sid = subj->sid; in SELinuxLabelClient()
185 if (avc_context_to_sid_raw(ctx, &subj->sid) < 0) in SELinuxLabelInitial()
188 obj->sid = subj->sid; in SELinuxLabelInitial()
218 obj->sid = subj->win_create_sid; in SELinuxLabelResource()
230 tsid = pobj->sid; in SELinuxLabelResource()
234 tsid = subj->sid; in SELinuxLabelResource()
238 if (avc_compute_create(subj->sid, tsid, class, &obj->sid) < 0) { in SELinuxLabelResource()
352 obj->sid = subj->dev_create_sid; in SELinuxDevice()
353 dsubj->sid = subj->dev_create_sid; in SELinuxDevice()
357 obj->sid = subj->sid; in SELinuxDevice()
358 dsubj->sid = subj->sid; in SELinuxDevice()
396 rc = SELinuxEventToSID(type, obj->sid, &ev_sid); in SELinuxSend()
434 rc = SELinuxEventToSID(type, obj->sid, &ev_sid); in SELinuxReceive()
462 if (obj->sid == NULL) { in SELinuxExtension()
463 security_id_t sid; in SELinuxExtension() local
466 rc = SELinuxExtensionToSID(rec->ext->name, &sid); in SELinuxExtension()
473 if (avc_compute_create(serv->sid, sid, SECCLASS_X_EXTENSION, in SELinuxExtension()
474 &obj->sid) < 0) { in SELinuxExtension()
507 rc = SELinuxSelectionToSID(name, subj, &obj->sid, &obj->poly); in SELinuxSelection()
509 obj->sid = unlabeled_sid; in SELinuxSelection()
519 while (pSel->selection != name || obj->sid != tsid) { in SELinuxSelection()
543 data->sid = subj->sel_create_sid; in SELinuxSelection()
545 data->sid = obj->sid; in SELinuxSelection()
570 rc = SELinuxPropertyToSID(name, subj, &obj->sid, &obj->poly); in SELinuxProperty()
583 while (pProp->propertyName != name || obj->sid != tsid) { in SELinuxProperty()
607 data->sid = subj->prp_create_sid; in SELinuxProperty()
609 data->sid = obj->sid; in SELinuxProperty()
688 if (avc_compute_create(subj->sid, subj->sid, SECCLASS_X_SCREEN, in SELinuxScreen()
689 &obj->sid) < 0) { in SELinuxScreen()
775 if (subj->sid) { in SELinuxResourceState()
777 int rc = avc_sid_to_context_raw(subj->sid, &ctx); in SELinuxResourceState()
793 if (obj->sid) { in SELinuxResourceState()
795 int rc = avc_sid_to_context_raw(obj->sid, &ctx); in SELinuxResourceState()