Lines Matching refs:sid
50 /* Array of property and selection SID structures */
118 /* Get a SID for context */
119 if (avc_context_to_sid_raw(ctx, &obj->sid) < 0) {
129 * Looks up the SID corresponding to the given property or selection atom
160 if (!obj->sid) {
173 * Looks up a SID for a selection/subject pair
194 tsid = obj->sid;
196 /* Polyinstantiate if necessary to obtain the final SID */
197 if (obj->poly && avc_compute_member(subj->sid, obj->sid,
210 * Looks up a SID for a property/subject pair
232 if (avc_compute_create(subj->sid, obj->sid, SECCLASS_X_PROPERTY, &tsid) < 0) {
237 /* Polyinstantiate if necessary to obtain the final SID */
240 if (avc_compute_member(subj->sid, tsid2,
254 * Looks up the SID corresponding to the given event type
261 security_id_t sid;
266 sid = SELinuxArrayGet(&arr_events, type);
267 if (!sid) {
273 /* Get a SID for context */
274 if (avc_context_to_sid_raw(ctx, &sid) < 0) {
280 /* Cache the SID value */
281 if (!SELinuxArraySet(&arr_events, type, sid))
285 /* Perform a transition to obtain the final SID */
286 if (avc_compute_create(sid_of_window, sid, SECCLASS_X_EVENT,
287 &sid_return->sid) < 0) {
305 /* Get a SID for context */