Lines Matching refs:tsid

49 	u32			tsid;  member
125 static inline u32 avc_hash(u32 ssid, u32 tsid, u16 tclass) in avc_hash() argument
127 return (ssid ^ (tsid<<2) ^ (tclass<<4)) & (AVC_CACHE_SLOTS - 1); in avc_hash()
415 static inline int avc_xperms_audit(u32 ssid, u32 tsid, u16 tclass, in avc_xperms_audit() argument
427 return slow_avc_audit(ssid, tsid, tclass, requested, in avc_xperms_audit()
515 static void avc_node_populate(struct avc_node *node, u32 ssid, u32 tsid, u16 tclass, struct av_deci… in avc_node_populate() argument
518 node->ae.tsid = tsid; in avc_node_populate()
523 static inline struct avc_node *avc_search_node(u32 ssid, u32 tsid, u16 tclass) in avc_search_node() argument
529 hvalue = avc_hash(ssid, tsid, tclass); in avc_search_node()
534 tsid == node->ae.tsid) { in avc_search_node()
555 static struct avc_node *avc_lookup(u32 ssid, u32 tsid, u16 tclass) in avc_lookup() argument
560 node = avc_search_node(ssid, tsid, tclass); in avc_lookup()
608 static void avc_insert(u32 ssid, u32 tsid, u16 tclass, in avc_insert() argument
624 avc_node_populate(node, ssid, tsid, tclass, avd); in avc_insert()
630 hvalue = avc_hash(ssid, tsid, tclass); in avc_insert()
636 pos->ae.tsid == tsid && in avc_insert()
712 rc = security_sid_to_context(sad->tsid, &tcontext, in avc_audit_post_callback()
715 audit_log_format(ab, " tsid=%d", sad->tsid); in avc_audit_post_callback()
740 rc = security_sid_to_context_inval(sad->tsid, &scontext, in avc_audit_post_callback()
756 noinline int slow_avc_audit(u32 ssid, u32 tsid, u16 tclass, in slow_avc_audit() argument
774 sad.tsid = tsid; in slow_avc_audit()
832 u32 tsid, u16 tclass, u32 seqno, in avc_update_node() argument
850 hvalue = avc_hash(ssid, tsid, tclass); in avc_update_node()
859 tsid == pos->ae.tsid && in avc_update_node()
877 avc_node_populate(node, ssid, tsid, tclass, &orig->ae.avd); in avc_update_node()
989 static noinline void avc_compute_av(u32 ssid, u32 tsid, u16 tclass, in avc_compute_av() argument
994 security_compute_av(ssid, tsid, tclass, avd, &xp_node->xp); in avc_compute_av()
995 avc_insert(ssid, tsid, tclass, avd, xp_node); in avc_compute_av()
998 static noinline int avc_denied(u32 ssid, u32 tsid, in avc_denied() argument
1011 xperm, ssid, tsid, tclass, avd->seqno, NULL, flags); in avc_denied()
1022 int avc_has_extended_perms(u32 ssid, u32 tsid, u16 tclass, u32 requested, in avc_has_extended_perms() argument
1043 node = avc_lookup(ssid, tsid, tclass); in avc_has_extended_perms()
1045 avc_compute_av(ssid, tsid, tclass, &avd, xp_node); in avc_has_extended_perms()
1069 security_compute_xperms_decision(ssid, tsid, tclass, in avc_has_extended_perms()
1073 driver, xperm, ssid, tsid, tclass, avd.seqno, in avc_has_extended_perms()
1086 rc = avc_denied(ssid, tsid, tclass, requested, in avc_has_extended_perms()
1091 rc2 = avc_xperms_audit(ssid, tsid, tclass, requested, in avc_has_extended_perms()
1111 static noinline int avc_perm_nonode(u32 ssid, u32 tsid, u16 tclass, in avc_perm_nonode() argument
1118 avc_compute_av(ssid, tsid, tclass, avd, &xp_node); in avc_perm_nonode()
1121 return avc_denied(ssid, tsid, tclass, requested, 0, 0, in avc_perm_nonode()
1146 inline int avc_has_perm_noaudit(u32 ssid, u32 tsid, in avc_has_perm_noaudit() argument
1158 node = avc_lookup(ssid, tsid, tclass); in avc_has_perm_noaudit()
1161 return avc_perm_nonode(ssid, tsid, tclass, requested, in avc_has_perm_noaudit()
1169 return avc_denied(ssid, tsid, tclass, requested, 0, 0, in avc_has_perm_noaudit()
1190 int avc_has_perm(u32 ssid, u32 tsid, u16 tclass, in avc_has_perm() argument
1196 rc = avc_has_perm_noaudit(ssid, tsid, tclass, requested, 0, in avc_has_perm()
1199 rc2 = avc_audit(ssid, tsid, tclass, requested, &avd, rc, in avc_has_perm()