• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/security/selinux/

Lines Matching refs:tclass

87 	u16			tclass;
108 u16 tclass, u32 perms,
113 u16 tclass;
129 static inline int avc_hash(u32 ssid, u32 tsid, u16 tclass)
131 return (ssid ^ (tsid<<2) ^ (tclass<<4)) & (AVC_CACHE_SLOTS - 1);
136 * @tclass: target security class
139 static void avc_dump_av(struct audit_buffer *ab, u16 tclass, u32 av)
151 if (av_inherit[i].tclass == tclass) {
173 if ((av_perm_to_string[i2].tclass == tclass) &&
197 * @tclass: target security class
199 static void avc_dump_query(struct audit_buffer *ab, u32 ssid, u32 tsid, u16 tclass)
221 BUG_ON(tclass >= ARRAY_SIZE(class_to_string) || !class_to_string[tclass]);
222 audit_log_format(ab, " tclass=%s", class_to_string[tclass]);
353 static void avc_node_populate(struct avc_node *node, u32 ssid, u32 tsid, u16 tclass, struct avc_entry *ae)
357 node->ae.tclass = tclass;
361 static inline struct avc_node *avc_search_node(u32 ssid, u32 tsid, u16 tclass)
366 hvalue = avc_hash(ssid, tsid, tclass);
369 tclass == node->ae.tclass &&
392 * @tclass: target security class
393 * @requested: requested permissions, interpreted based on @tclass
398 * based on @tclass. If a valid AVC entry exists,
402 static struct avc_node *avc_lookup(u32 ssid, u32 tsid, u16 tclass, u32 requested)
407 node = avc_search_node(ssid, tsid, tclass);
446 * @tclass: target security class
450 * (@ssid, @tsid) and class @tclass.
459 static struct avc_node *avc_insert(u32 ssid, u32 tsid, u16 tclass, struct avc_entry *ae)
470 hvalue = avc_hash(ssid, tsid, tclass);
471 avc_node_populate(node, ssid, tsid, tclass, ae);
477 pos->ae.tclass == tclass) {
513 * @tclass: target security class
529 u16 tclass, u32 requested,
554 avc_dump_av(ab, tclass,audited);
670 avc_dump_query(ab, ssid, tsid, tclass);
680 * @tclass: target security class
686 * @perms based on @tclass. Returns %0 on success or
690 u16 tclass, u32 perms,
693 u16 tclass, u32 perms)
724 * @ssid,@tsid,@tclass : identifier of an AVC entry
731 static int avc_update_node(u32 event, u32 perms, u32 ssid, u32 tsid, u16 tclass)
744 hvalue = avc_hash(ssid, tsid, tclass);
750 tclass==pos->ae.tclass ){
766 avc_node_populate(node, ssid, tsid, tclass, &orig->ae);
833 * @tclass: target security class
834 * @requested: requested permissions, interpreted based on @tclass
839 * based on @tclass, and call the security server on a cache miss to obtain
849 u16 tclass, u32 requested,
859 node = avc_lookup(ssid, tsid, tclass, requested);
862 rc = security_compute_av(ssid,tsid,tclass,requested,&entry.avd);
866 node = avc_insert(ssid,tsid,tclass,&entry);
882 ssid,tsid,tclass);
894 * @tclass: target security class
895 * @requested: requested permissions, interpreted based on @tclass
900 * based on @tclass, and call the security server on a cache miss to obtain
906 int avc_has_perm(u32 ssid, u32 tsid, u16 tclass,
912 rc = avc_has_perm_noaudit(ssid, tsid, tclass, requested, &avd);
913 avc_audit(ssid, tsid, tclass, requested, &avd, rc, auditdata);