Home | History | Annotate | Download | only in src

Lines Matching full:tsid

21 	security_id_t tsid;
42 security_id_t tsid,
47 security_id_t tsid;
64 security_id_t tsid, security_class_t tclass)
66 return ((uintptr_t) ssid ^ ((uintptr_t) tsid << 2) ^ tclass)
343 security_id_t tsid,
362 hvalue = avc_hash(ssid, tsid, tclass);
366 new->ae.tsid = tsid;
376 security_id_t tsid,
384 hvalue = avc_hash(ssid, tsid, tclass);
388 tclass != cur->ae.tclass || tsid != cur->ae.tsid)) {
411 * @tsid: target security identifier
418 * (@ssid, @tsid), interpreting the permissions
423 static int avc_lookup(security_id_t ssid, security_id_t tsid,
431 node = avc_search_node(ssid, tsid, tclass, &probes);
449 * @tsid: target security identifier
455 * (@ssid, @tsid) and class @tclass.
465 static int avc_insert(security_id_t ssid, security_id_t tsid,
481 node = avc_claim_node(ssid, tsid, tclass);
678 * @tsid: target security identifier
681 static void avc_dump_query(security_id_t ssid, security_id_t tsid,
687 ssid->ctx, tsid->ctx);
694 void avc_audit(security_id_t ssid, security_id_t tsid,
725 avc_dump_query(ssid, tsid, tclass);
745 security_id_t tsid,
773 ae->tsid == tsid &&
786 rc = avc_lookup(ssid, tsid, tclass, requested, aeref);
788 rc = security_compute_av_flags_raw(ssid->ctx, tsid->ctx,
797 rc = avc_insert(ssid, tsid, tclass, &entry, aeref);
826 int avc_has_perm(security_id_t ssid, security_id_t tsid,
833 rc = avc_has_perm_noaudit(ssid, tsid, tclass, requested, aeref, &avd);
835 avc_audit(ssid, tsid, tclass, requested, &avd, rc, auditdata);
840 int avc_compute_create(security_id_t ssid, security_id_t tsid,
854 rc = avc_lookup(ssid, tsid, tclass, 0, &aeref);
857 rc = security_compute_av_flags_raw(ssid->ctx, tsid->ctx,
861 rc = avc_insert(ssid, tsid, tclass, &entry, &aeref);
869 rc = security_compute_create_raw(ssid->ctx, tsid->ctx, tclass,
890 int avc_compute_member(security_id_t ssid, security_id_t tsid,
900 rc = security_compute_member_raw(ssid->ctx, tsid->ctx, tclass, &ctx);
911 security_id_t tsid,
916 security_id_t tsid,
931 c->tsid = tsid;
972 security_id_t tsid, security_class_t tclass,
980 if (ssid == SECSID_WILD || tsid == SECSID_WILD) {
985 avc_sidcmp(tsid, node->ae.tsid) &&
993 node = avc_search_node(ssid, tsid, tclass, 0);
1010 security_id_t tsid, security_class_t tclass,
1026 avc_update_cache(event, ssid, tsid, tclass, perms);
1031 avc_sidcmp(c->tsid, tsid) &&
1034 ret = c->callback(event, ssid, tsid, tclass,
1048 avc_update_cache(event, ssid, tsid, tclass, perms);
1064 * @tsid: target security identifier or %SECSID_WILD
1069 int avc_ss_grant(security_id_t ssid, security_id_t tsid,
1074 ssid, tsid, tclass, perms, seqno, 0);
1080 * @tsid: target security identifier or %SECSID_WILD
1090 int avc_ss_try_revoke(security_id_t ssid, security_id_t tsid,
1096 ssid, tsid, tclass, perms, seqno, out_retained);
1102 * @tsid: target security identifier or %SECSID_WILD
1110 int avc_ss_revoke(security_id_t ssid, security_id_t tsid,
1115 ssid, tsid, tclass, perms, seqno, 0);
1139 * @tsid: target security identifier or %SECSID_WILD
1145 int avc_ss_set_auditallow(security_id_t ssid, security_id_t tsid,
1151 ssid, tsid, tclass, perms, seqno, 0);
1154 ssid, tsid, tclass, perms, seqno, 0);
1160 * @tsid: target security identifier or %SECSID_WILD
1166 int avc_ss_set_auditdeny(security_id_t ssid, security_id_t tsid,
1172 ssid, tsid, tclass, perms, seqno, 0);
1175 ssid, tsid, tclass, perms, seqno, 0);