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)
303 security_id_t tsid,
322 hvalue = avc_hash(ssid, tsid, tclass);
326 new->ae.tsid = tsid;
336 security_id_t tsid,
344 hvalue = avc_hash(ssid, tsid, tclass);
348 tclass != cur->ae.tclass || tsid != cur->ae.tsid)) {
371 * @tsid: target security identifier
378 * (@ssid, @tsid), interpreting the permissions
383 static int avc_lookup(security_id_t ssid, security_id_t tsid,
391 node = avc_search_node(ssid, tsid, tclass, &probes);
409 * @tsid: target security identifier
415 * (@ssid, @tsid) and class @tclass.
425 static int avc_insert(security_id_t ssid, security_id_t tsid,
441 node = avc_claim_node(ssid, tsid, tclass);
638 * @tsid: target security identifier
641 static void avc_dump_query(security_id_t ssid, security_id_t tsid,
647 ssid->ctx, tsid->ctx);
654 void avc_audit(security_id_t ssid, security_id_t tsid,
685 avc_dump_query(ssid, tsid, tclass);
710 security_id_t tsid,
738 ae->tsid == tsid &&
751 rc = avc_lookup(ssid, tsid, tclass, requested, aeref);
753 rc = security_compute_av(ssid->ctx, tsid->ctx,
762 rc = avc_insert(ssid, tsid, tclass, &entry, aeref);
791 int avc_has_perm(security_id_t ssid, security_id_t tsid,
798 rc = avc_has_perm_noaudit(ssid, tsid, tclass, requested, aeref, &avd);
800 avc_audit(ssid, tsid, tclass, requested, &avd, rc, auditdata);
805 int avc_compute_create(security_id_t ssid, security_id_t tsid,
819 rc = avc_lookup(ssid, tsid, tclass, 0, &aeref);
822 rc = security_compute_av(ssid->ctx, tsid->ctx,
826 rc = avc_insert(ssid, tsid, tclass, &entry, &aeref);
834 rc = security_compute_create(ssid->ctx, tsid->ctx, tclass,
856 security_id_t tsid,
861 security_id_t tsid,
876 c->tsid = tsid;
917 security_id_t tsid, security_class_t tclass,
925 if (ssid == SECSID_WILD || tsid == SECSID_WILD) {
930 avc_sidcmp(tsid, node->ae.tsid) &&
938 node = avc_search_node(ssid, tsid, tclass, 0);
955 security_id_t tsid, security_class_t tclass,
971 avc_update_cache(event, ssid, tsid, tclass, perms);
976 avc_sidcmp(c->tsid, tsid) &&
979 ret = c->callback(event, ssid, tsid, tclass,
993 avc_update_cache(event, ssid, tsid, tclass, perms);
1009 * @tsid: target security identifier or %SECSID_WILD
1014 int avc_ss_grant(security_id_t ssid, security_id_t tsid,
1019 ssid, tsid, tclass, perms, seqno, 0);
1025 * @tsid: target security identifier or %SECSID_WILD
1035 int avc_ss_try_revoke(security_id_t ssid, security_id_t tsid,
1041 ssid, tsid, tclass, perms, seqno, out_retained);
1047 * @tsid: target security identifier or %SECSID_WILD
1055 int avc_ss_revoke(security_id_t ssid, security_id_t tsid,
1060 ssid, tsid, tclass, perms, seqno, 0);
1084 * @tsid: target security identifier or %SECSID_WILD
1090 int avc_ss_set_auditallow(security_id_t ssid, security_id_t tsid,
1096 ssid, tsid, tclass, perms, seqno, 0);
1099 ssid, tsid, tclass, perms, seqno, 0);
1105 * @tsid: target security identifier or %SECSID_WILD
1111 int avc_ss_set_auditdeny(security_id_t ssid, security_id_t tsid,
1117 ssid, tsid, tclass, perms, seqno, 0);
1120 ssid, tsid, tclass, perms, seqno, 0);