Lines Matching refs:sid
48 /* Array of property and selection SID structures */
113 /* Get a SID for context */
114 if (avc_context_to_sid_raw(ctx, &obj->sid) < 0) {
124 * Looks up the SID corresponding to the given property or selection atom
150 if (!obj->sid) {
163 * Looks up a SID for a selection/subject pair
184 tsid = obj->sid;
186 /* Polyinstantiate if necessary to obtain the final SID */
187 if (obj->poly && avc_compute_member(subj->sid, obj->sid,
200 * Looks up a SID for a property/subject pair
222 if (avc_compute_create(subj->sid, obj->sid,
228 /* Polyinstantiate if necessary to obtain the final SID */
231 if (avc_compute_member(subj->sid, tsid2,
245 * Looks up the SID corresponding to the given event type
252 security_id_t sid;
256 sid = SELinuxArrayGet(&arr_events, type);
257 if (!sid) {
263 /* Get a SID for context */
264 if (avc_context_to_sid_raw(ctx, &sid) < 0) {
270 /* Cache the SID value */
271 if (!SELinuxArraySet(&arr_events, type, sid))
275 /* Perform a transition to obtain the final SID */
276 if (avc_compute_create(sid_of_window, sid, SECCLASS_X_EVENT,
277 &sid_return->sid) < 0) {
295 /* Get a SID for context */