Lines Matching refs:tclass
53 u16 tclass; member
130 static inline int avc_hash(u32 ssid, u32 tsid, u16 tclass) in avc_hash() argument
132 return (ssid ^ (tsid<<2) ^ (tclass<<4)) & (AVC_CACHE_SLOTS - 1); in avc_hash()
421 u32 ssid, u32 tsid, u16 tclass, in avc_xperms_audit() argument
433 return slow_avc_audit(state, ssid, tsid, tclass, requested, in avc_xperms_audit()
524 static void avc_node_populate(struct avc_node *node, u32 ssid, u32 tsid, u16 tclass, struct av_deci… in avc_node_populate() argument
528 node->ae.tclass = tclass; in avc_node_populate()
533 u32 ssid, u32 tsid, u16 tclass) in avc_search_node() argument
539 hvalue = avc_hash(ssid, tsid, tclass); in avc_search_node()
543 tclass == node->ae.tclass && in avc_search_node()
566 u32 ssid, u32 tsid, u16 tclass) in avc_lookup() argument
571 node = avc_search_node(avc, ssid, tsid, tclass); in avc_lookup()
574 trace_android_vh_selinux_avc_lookup(node, ssid, tsid, tclass); in avc_lookup()
624 u32 ssid, u32 tsid, u16 tclass, in avc_insert() argument
641 avc_node_populate(node, ssid, tsid, tclass, avd); in avc_insert()
647 hvalue = avc_hash(ssid, tsid, tclass); in avc_insert()
654 pos->ae.tclass == tclass) { in avc_insert()
687 perms = secclass_map[sad->tclass-1].perms; in avc_audit_pre_callback()
719 const char *tclass = NULL; in avc_audit_post_callback() local
738 tclass = secclass_map[sad->tclass-1].name; in avc_audit_post_callback()
739 audit_log_format(ab, " tclass=%s", tclass); in avc_audit_post_callback()
744 trace_selinux_audited(sad, scontext, tcontext, tclass); in avc_audit_post_callback()
772 u32 ssid, u32 tsid, u16 tclass, in slow_avc_audit() argument
779 if (WARN_ON(!tclass || tclass >= ARRAY_SIZE(secclass_map))) in slow_avc_audit()
787 sad.tclass = tclass; in slow_avc_audit()
846 u32 tsid, u16 tclass, u32 seqno, in avc_update_node() argument
878 hvalue = avc_hash(ssid, tsid, tclass); in avc_update_node()
888 tclass == pos->ae.tclass && in avc_update_node()
905 avc_node_populate(node, ssid, tsid, tclass, &orig->ae.avd); in avc_update_node()
1013 u16 tclass, struct av_decision *avd, in avc_compute_av() argument
1018 security_compute_av(state, ssid, tsid, tclass, avd, &xp_node->xp); in avc_compute_av()
1020 return avc_insert(state->avc, ssid, tsid, tclass, avd, xp_node); in avc_compute_av()
1025 u16 tclass, u32 requested, in avc_denied() argument
1037 xperm, ssid, tsid, tclass, avd->seqno, NULL, flags); in avc_denied()
1049 u32 ssid, u32 tsid, u16 tclass, u32 requested, in avc_has_extended_perms() argument
1070 node = avc_lookup(state->avc, ssid, tsid, tclass); in avc_has_extended_perms()
1072 node = avc_compute_av(state, ssid, tsid, tclass, &avd, xp_node); in avc_has_extended_perms()
1096 security_compute_xperms_decision(state, ssid, tsid, tclass, in avc_has_extended_perms()
1100 driver, xperm, ssid, tsid, tclass, avd.seqno, in avc_has_extended_perms()
1113 rc = avc_denied(state, ssid, tsid, tclass, requested, in avc_has_extended_perms()
1118 rc2 = avc_xperms_audit(state, ssid, tsid, tclass, requested, in avc_has_extended_perms()
1147 u16 tclass, u32 requested, in avc_has_perm_noaudit() argument
1161 node = avc_lookup(state->avc, ssid, tsid, tclass); in avc_has_perm_noaudit()
1163 node = avc_compute_av(state, ssid, tsid, tclass, avd, &xp_node); in avc_has_perm_noaudit()
1169 rc = avc_denied(state, ssid, tsid, tclass, requested, 0, 0, in avc_has_perm_noaudit()
1192 int avc_has_perm(struct selinux_state *state, u32 ssid, u32 tsid, u16 tclass, in avc_has_perm() argument
1198 rc = avc_has_perm_noaudit(state, ssid, tsid, tclass, requested, 0, in avc_has_perm()
1201 rc2 = avc_audit(state, ssid, tsid, tclass, requested, &avd, rc, in avc_has_perm()
1209 u32 ssid, u32 tsid, u16 tclass, u32 requested, in avc_has_perm_flags() argument
1216 rc = avc_has_perm_noaudit(state, ssid, tsid, tclass, requested, in avc_has_perm_flags()
1220 rc2 = avc_audit(state, ssid, tsid, tclass, requested, &avd, rc, in avc_has_perm_flags()