Lines Matching refs:tclass
50 u16 tclass; member
99 static inline int avc_hash(u32 ssid, u32 tsid, u16 tclass) in avc_hash() argument
101 return (ssid ^ (tsid<<2) ^ (tclass<<4)) & (AVC_CACHE_SLOTS - 1); in avc_hash()
109 static void avc_dump_av(struct audit_buffer *ab, u16 tclass, u32 av) in avc_dump_av() argument
119 BUG_ON(!tclass || tclass >= ARRAY_SIZE(secclass_map)); in avc_dump_av()
120 perms = secclass_map[tclass-1].perms; in avc_dump_av()
146 static void avc_dump_query(struct audit_buffer *ab, u32 ssid, u32 tsid, u16 tclass) in avc_dump_query() argument
168 BUG_ON(!tclass || tclass >= ARRAY_SIZE(secclass_map)); in avc_dump_query()
169 audit_log_format(ab, " tclass=%s", secclass_map[tclass-1].name); in avc_dump_query()
468 static inline int avc_xperms_audit(u32 ssid, u32 tsid, u16 tclass, in avc_xperms_audit() argument
480 return slow_avc_audit(ssid, tsid, tclass, requested, in avc_xperms_audit()
566 static void avc_node_populate(struct avc_node *node, u32 ssid, u32 tsid, u16 tclass, struct av_deci… in avc_node_populate() argument
570 node->ae.tclass = tclass; in avc_node_populate()
574 static inline struct avc_node *avc_search_node(u32 ssid, u32 tsid, u16 tclass) in avc_search_node() argument
580 hvalue = avc_hash(ssid, tsid, tclass); in avc_search_node()
584 tclass == node->ae.tclass && in avc_search_node()
606 static struct avc_node *avc_lookup(u32 ssid, u32 tsid, u16 tclass) in avc_lookup() argument
611 node = avc_search_node(ssid, tsid, tclass); in avc_lookup()
660 static struct avc_node *avc_insert(u32 ssid, u32 tsid, u16 tclass, in avc_insert() argument
677 hvalue = avc_hash(ssid, tsid, tclass); in avc_insert()
678 avc_node_populate(node, ssid, tsid, tclass, avd); in avc_insert()
691 pos->ae.tclass == tclass) { in avc_insert()
715 avc_dump_av(ab, ad->selinux_audit_data->tclass, in avc_audit_pre_callback()
732 ad->selinux_audit_data->tclass); in avc_audit_post_callback()
740 noinline int slow_avc_audit(u32 ssid, u32 tsid, u16 tclass, in slow_avc_audit() argument
764 sad.tclass = tclass; in slow_avc_audit()
820 u32 tsid, u16 tclass, u32 seqno, in avc_update_node() argument
837 hvalue = avc_hash(ssid, tsid, tclass); in avc_update_node()
847 tclass == pos->ae.tclass && in avc_update_node()
864 avc_node_populate(node, ssid, tsid, tclass, &orig->ae.avd); in avc_update_node()
970 u16 tclass, struct av_decision *avd, in avc_compute_av() argument
975 security_compute_av(ssid, tsid, tclass, avd, &xp_node->xp); in avc_compute_av()
977 return avc_insert(ssid, tsid, tclass, avd, xp_node); in avc_compute_av()
981 u16 tclass, u32 requested, in avc_denied() argument
992 tsid, tclass, avd->seqno, NULL, flags); in avc_denied()
1003 int avc_has_extended_perms(u32 ssid, u32 tsid, u16 tclass, u32 requested, in avc_has_extended_perms() argument
1023 node = avc_lookup(ssid, tsid, tclass); in avc_has_extended_perms()
1025 node = avc_compute_av(ssid, tsid, tclass, &avd, xp_node); in avc_has_extended_perms()
1049 security_compute_xperms_decision(ssid, tsid, tclass, driver, in avc_has_extended_perms()
1053 ssid, tsid, tclass, avd.seqno, &local_xpd, 0); in avc_has_extended_perms()
1065 rc = avc_denied(ssid, tsid, tclass, requested, driver, xperm, in avc_has_extended_perms()
1070 rc2 = avc_xperms_audit(ssid, tsid, tclass, requested, in avc_has_extended_perms()
1098 u16 tclass, u32 requested, in avc_has_perm_noaudit() argument
1111 node = avc_lookup(ssid, tsid, tclass); in avc_has_perm_noaudit()
1113 node = avc_compute_av(ssid, tsid, tclass, avd, &xp_node); in avc_has_perm_noaudit()
1119 rc = avc_denied(ssid, tsid, tclass, requested, 0, 0, flags, avd); in avc_has_perm_noaudit()
1141 int avc_has_perm(u32 ssid, u32 tsid, u16 tclass, in avc_has_perm() argument
1147 rc = avc_has_perm_noaudit(ssid, tsid, tclass, requested, 0, &avd); in avc_has_perm()
1149 rc2 = avc_audit(ssid, tsid, tclass, requested, &avd, rc, auditdata, 0); in avc_has_perm()
1155 int avc_has_perm_flags(u32 ssid, u32 tsid, u16 tclass, in avc_has_perm_flags() argument
1162 rc = avc_has_perm_noaudit(ssid, tsid, tclass, requested, 0, &avd); in avc_has_perm_flags()
1164 rc2 = avc_audit(ssid, tsid, tclass, requested, &avd, rc, in avc_has_perm_flags()