Lines Matching refs:tclass

71     u16            tclass;  member
100 static inline int avc_hash(u32 ssid, u32 tsid, u16 tclass) in avc_hash() argument
102 return (ssid ^ (tsid<<2) ^ (tclass<<4)) & (AVC_CACHE_SLOTS - 1); in avc_hash()
152 static void avc_dump_av(struct avc_dump_buf *buf, u16 tclass, u32 av) in avc_dump_av() argument
172 if ( (av_perm_to_string[i2].tclass == tclass) && in avc_dump_av()
198 static void avc_dump_query(struct avc_dump_buf *buf, u32 ssid, u32 tsid, u16 tclass) in avc_dump_query() argument
222 avc_printk(buf, " tclass=%s", class_to_string[tclass]); in avc_dump_query()
365 u16 tclass, struct av_decision *avd) in avc_node_populate() argument
369 node->ae.tclass = tclass; in avc_node_populate()
373 static inline struct avc_node *avc_search_node(u32 ssid, u32 tsid, u16 tclass) in avc_search_node() argument
380 hvalue = avc_hash(ssid, tsid, tclass); in avc_search_node()
385 tclass == node->ae.tclass && in avc_search_node()
410 static struct avc_node *avc_lookup(u32 ssid, u32 tsid, u16 tclass) in avc_lookup() argument
415 node = avc_search_node(ssid, tsid, tclass); in avc_lookup()
468 static struct avc_node *avc_insert(u32 ssid, u32 tsid, u16 tclass, in avc_insert() argument
485 hvalue = avc_hash(ssid, tsid, tclass); in avc_insert()
486 avc_node_populate(node, ssid, tsid, tclass, avd); in avc_insert()
496 pos->ae.tclass == tclass ) in avc_insert()
529 void avc_audit(u32 ssid, u32 tsid, u16 tclass, u32 requested, in avc_audit() argument
563 avc_dump_av(&buf, tclass, audited); in avc_audit()
595 avc_dump_query(&buf, ssid, tsid, tclass); in avc_audit()
616 static int avc_update_node(u32 perms, u32 ssid, u32 tsid, u16 tclass, in avc_update_node() argument
633 hvalue = avc_hash(ssid, tsid, tclass); in avc_update_node()
644 tclass == pos->ae.tclass && in avc_update_node()
663 avc_node_populate(node, ssid, tsid, tclass, &orig->ae.avd); in avc_update_node()
722 int avc_has_perm_noaudit(u32 ssid, u32 tsid, u16 tclass, u32 requested, in avc_has_perm_noaudit() argument
734 node = avc_lookup(ssid, tsid, tclass); in avc_has_perm_noaudit()
744 rc = security_compute_av(ssid,tsid,tclass,requested,avd); in avc_has_perm_noaudit()
748 node = avc_insert(ssid,tsid,tclass,avd); in avc_has_perm_noaudit()
760 avc_update_node(requested, ssid,tsid,tclass,avd->seqno); in avc_has_perm_noaudit()
786 int avc_has_perm(u32 ssid, u32 tsid, u16 tclass, in avc_has_perm() argument
792 rc = avc_has_perm_noaudit(ssid, tsid, tclass, requested, &avd); in avc_has_perm()
793 avc_audit(ssid, tsid, tclass, requested, &avd, rc, auditdata); in avc_has_perm()