Lines Matching refs:tsid
21 security_id_t tsid; member
42 security_id_t tsid,
47 security_id_t tsid; member
64 security_id_t tsid, security_class_t tclass) in avc_hash() argument
66 return ((uintptr_t) ssid ^ ((uintptr_t) tsid << 2) ^ tclass) in avc_hash()
343 security_id_t tsid, in avc_claim_node() argument
362 hvalue = avc_hash(ssid, tsid, tclass); in avc_claim_node()
366 new->ae.tsid = tsid; in avc_claim_node()
376 security_id_t tsid, in avc_search_node() argument
384 hvalue = avc_hash(ssid, tsid, tclass); in avc_search_node()
388 tclass != cur->ae.tclass || tsid != cur->ae.tsid)) { in avc_search_node()
423 static int avc_lookup(security_id_t ssid, security_id_t tsid, in avc_lookup() argument
431 node = avc_search_node(ssid, tsid, tclass, &probes); in avc_lookup()
465 static int avc_insert(security_id_t ssid, security_id_t tsid, in avc_insert() argument
481 node = avc_claim_node(ssid, tsid, tclass); in avc_insert()
681 static void avc_dump_query(security_id_t ssid, security_id_t tsid, in avc_dump_query() argument
687 ssid->ctx, tsid->ctx); in avc_dump_query()
694 void avc_audit(security_id_t ssid, security_id_t tsid, in avc_audit() argument
725 avc_dump_query(ssid, tsid, tclass); in avc_audit()
749 security_id_t tsid, in avc_has_perm_noaudit() argument
777 ae->tsid == tsid && in avc_has_perm_noaudit()
790 rc = avc_lookup(ssid, tsid, tclass, requested, aeref); in avc_has_perm_noaudit()
792 rc = security_compute_av_flags_raw(ssid->ctx, tsid->ctx, in avc_has_perm_noaudit()
801 rc = avc_insert(ssid, tsid, tclass, &entry, aeref); in avc_has_perm_noaudit()
830 int avc_has_perm(security_id_t ssid, security_id_t tsid, in hidden_def()
837 rc = avc_has_perm_noaudit(ssid, tsid, tclass, requested, aeref, &avd); in hidden_def()
839 avc_audit(ssid, tsid, tclass, requested, &avd, rc, auditdata); in hidden_def()
844 int avc_compute_create(security_id_t ssid, security_id_t tsid, in avc_compute_create() argument
858 rc = avc_lookup(ssid, tsid, tclass, 0, &aeref); in avc_compute_create()
861 rc = security_compute_av_flags_raw(ssid->ctx, tsid->ctx, in avc_compute_create()
865 rc = avc_insert(ssid, tsid, tclass, &entry, &aeref); in avc_compute_create()
873 rc = security_compute_create_raw(ssid->ctx, tsid->ctx, tclass, in avc_compute_create()
894 int avc_compute_member(security_id_t ssid, security_id_t tsid, in avc_compute_member() argument
904 rc = security_compute_member_raw(ssid->ctx, tsid->ctx, tclass, &ctx); in avc_compute_member()
915 security_id_t tsid, in avc_add_callback() argument
920 security_id_t tsid, in avc_add_callback()
935 c->tsid = tsid; in avc_add_callback()
976 security_id_t tsid, security_class_t tclass, in avc_update_cache() argument
984 if (ssid == SECSID_WILD || tsid == SECSID_WILD) { in avc_update_cache()
989 avc_sidcmp(tsid, node->ae.tsid) && in avc_update_cache()
997 node = avc_search_node(ssid, tsid, tclass, 0); in avc_update_cache()
1014 security_id_t tsid, security_class_t tclass, in avc_control() argument
1030 avc_update_cache(event, ssid, tsid, tclass, perms); in avc_control()
1035 avc_sidcmp(c->tsid, tsid) && in avc_control()
1038 ret = c->callback(event, ssid, tsid, tclass, in avc_control()
1052 avc_update_cache(event, ssid, tsid, tclass, perms); in avc_control()
1073 int avc_ss_grant(security_id_t ssid, security_id_t tsid, in avc_ss_grant() argument
1078 ssid, tsid, tclass, perms, seqno, 0); in avc_ss_grant()
1094 int avc_ss_try_revoke(security_id_t ssid, security_id_t tsid, in avc_ss_try_revoke() argument
1100 ssid, tsid, tclass, perms, seqno, out_retained); in avc_ss_try_revoke()
1114 int avc_ss_revoke(security_id_t ssid, security_id_t tsid, in avc_ss_revoke() argument
1119 ssid, tsid, tclass, perms, seqno, 0); in avc_ss_revoke()
1149 int avc_ss_set_auditallow(security_id_t ssid, security_id_t tsid, in avc_ss_set_auditallow() argument
1155 ssid, tsid, tclass, perms, seqno, 0); in avc_ss_set_auditallow()
1158 ssid, tsid, tclass, perms, seqno, 0); in avc_ss_set_auditallow()
1170 int avc_ss_set_auditdeny(security_id_t ssid, security_id_t tsid, in avc_ss_set_auditdeny() argument
1176 ssid, tsid, tclass, perms, seqno, 0); in avc_ss_set_auditdeny()
1179 ssid, tsid, tclass, perms, seqno, 0); in avc_ss_set_auditdeny()