/linux-3.4.99/drivers/base/ |
D | transport_class.c | 48 int transport_class_register(struct transport_class *tclass) in transport_class_register() argument 50 return class_register(&tclass->class); in transport_class_register() 62 void transport_class_unregister(struct transport_class *tclass) in transport_class_unregister() argument 64 class_unregister(&tclass->class); in transport_class_unregister() 91 atc->container.class = &atc->tclass.class; in anon_transport_class_register() 96 atc->tclass.setup = anon_transport_dummy_function; in anon_transport_class_register() 97 atc->tclass.remove = anon_transport_dummy_function; in anon_transport_class_register() 121 struct transport_class *tclass = class_to_transport_class(cont->class); in transport_setup_classdev() local 124 if (tclass->setup) in transport_setup_classdev() 125 tclass->setup(tcont, dev, classdev); in transport_setup_classdev() [all …]
|
/linux-3.4.99/security/selinux/ |
D | avc.c | 49 u16 tclass; member 69 u16 tclass, u32 perms, 74 u16 tclass; member 90 static inline int avc_hash(u32 ssid, u32 tsid, u16 tclass) in avc_hash() argument 92 return (ssid ^ (tsid<<2) ^ (tclass<<4)) & (AVC_CACHE_SLOTS - 1); in avc_hash() 100 static void avc_dump_av(struct audit_buffer *ab, u16 tclass, u32 av) in avc_dump_av() argument 110 perms = secclass_map[tclass-1].perms; in avc_dump_av() 136 static void avc_dump_query(struct audit_buffer *ab, u32 ssid, u32 tsid, u16 tclass) in avc_dump_query() argument 158 BUG_ON(tclass >= ARRAY_SIZE(secclass_map)); in avc_dump_query() 159 audit_log_format(ab, " tclass=%s", secclass_map[tclass-1].name); in avc_dump_query() [all …]
|
D | selinuxfs.c | 709 u16 tclass; in sel_write_access() local 728 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_access() 739 security_compute_av_user(ssid, tsid, tclass, &avd); in sel_write_access() 757 u16 tclass; in sel_write_create() local 783 nargs = sscanf(buf, "%s %s %hu %s", scon, tcon, &tclass, namebuf); in sel_write_create() 825 length = security_transition_sid_user(ssid, tsid, tclass, in sel_write_create() 855 u16 tclass; in sel_write_relabel() local 875 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_relabel() 886 length = security_change_sid(ssid, tsid, tclass, &newsid); in sel_write_relabel() 971 u16 tclass; in sel_write_member() local [all …]
|
/linux-3.4.99/security/selinux/include/ |
D | avc.h | 55 u16 tclass; member 81 u16 tclass, u32 requested, 88 u16 tclass, u32 requested, 93 u16 tclass, u32 requested, 98 u16 tclass, u32 requested, in avc_has_perm() argument 101 return avc_has_perm_flags(ssid, tsid, tclass, requested, auditdata, 0); in avc_has_perm() 116 u16 tclass, u32 perms, 119 u16 tclass, u32 perms);
|
D | security.h | 107 u16 tclass, struct av_decision *avd); 110 u16 tclass, struct av_decision *avd); 112 int security_transition_sid(u32 ssid, u32 tsid, u16 tclass, 115 int security_transition_sid_user(u32 ssid, u32 tsid, u16 tclass, 119 u16 tclass, u32 *out_sid); 122 u16 tclass, u32 *out_sid); 149 u16 tclass);
|
/linux-3.4.99/security/selinux/ss/ |
D | services.c | 96 u16 tclass, 194 static u16 unmap_class(u16 tclass) in unmap_class() argument 196 if (tclass < current_mapping_size) in unmap_class() 197 return current_mapping[tclass].value; in unmap_class() 199 return tclass; in unmap_class() 217 static void map_decision(u16 tclass, struct av_decision *avd, in map_decision() argument 220 if (tclass < current_mapping_size) { in map_decision() 221 unsigned i, n = current_mapping[tclass].num_perms; in map_decision() 225 if (avd->allowed & current_mapping[tclass].perms[i]) in map_decision() 227 if (allow_unknown && !current_mapping[tclass].perms[i]) in map_decision() [all …]
|
D | policydb.h | 76 u32 tclass; /* process class, or new object class */ member 84 u16 tclass; /* class of new object */ member 342 extern u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name);
|
D | mls.h | 50 u16 tclass,
|
D | mls.c | 513 u16 tclass, in mls_compute_sid() argument 529 rtr.target_class = tclass; in mls_compute_sid() 535 if ((tclass == policydb.process_class) || (sock == true)) in mls_compute_sid()
|
D | policydb.c | 194 hash = ft->stype ^ ft->ttype ^ ft->tclass; in filenametr_hash() 216 v = ft1->tclass - ft2->tclass; in filenametr_cmp() 1757 u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name) in string_to_av_perm() argument 1763 if (!tclass || tclass > p->p_classes.nprim) in string_to_av_perm() 1766 cladatum = p->class_val_to_struct[tclass-1]; in string_to_av_perm() 1909 ft->tclass = le32_to_cpu(buf[2]); in filename_trans_read() 2379 tr->tclass = le32_to_cpu(buf[0]); in policydb_read() 2381 tr->tclass = p->process_class; in policydb_read() 2385 !policydb_class_isvalid(p, tr->tclass) || in policydb_read() 2621 buf[0] = cpu_to_le32(tr->tclass); in role_trans_write() [all …]
|
/linux-3.4.99/net/ipv6/ |
D | fib6_rules.c | 30 u8 tclass; member 139 if (r->tclass && r->tclass != ((ntohl(fl6->flowlabel) >> 20) & 0xff)) in fib6_rule_match() 177 rule6->tclass = frh->tos; in fib6_rule_configure() 195 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare() 216 frh->tos = rule6->tclass; in fib6_rule_fill()
|
D | datagram.c | 492 int tclass = ipv6_tclass(ipv6_hdr(skb)); in datagram_recv_ctl() local 493 put_cmsg(msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); in datagram_recv_ctl() 605 int *hlimit, int *tclass, int *dontfrag) in datagram_send_ctl() argument 843 *tclass = tc; in datagram_send_ctl()
|
D | raw.c | 740 int tclass = -1; in rawv6_sendmsg() local 821 &hlimit, &tclass, &dontfrag); in rawv6_sendmsg() 874 if (tclass < 0) in rawv6_sendmsg() 875 tclass = np->tclass; in rawv6_sendmsg() 889 len, 0, hlimit, tclass, opt, &fl6, (struct rt6_info*)dst, in rawv6_sendmsg()
|
D | ipv6_sockglue.c | 320 np->tclass = val; in do_ipv6_setsockopt() 1022 int tclass = np->rcv_tclass; in do_ipv6_getsockopt() local 1023 put_cmsg(&msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); in do_ipv6_getsockopt() 1116 val = np->tclass; in do_ipv6_getsockopt()
|
D | udp.c | 966 int tclass = -1; in udpv6_sendmsg() local 1099 &hlimit, &tclass, &dontfrag); in udpv6_sendmsg() 1156 if (tclass < 0) in udpv6_sendmsg() 1157 tclass = np->tclass; in udpv6_sendmsg() 1183 sizeof(struct udphdr), hlimit, tclass, opt, &fl6, in udpv6_sendmsg()
|
D | ip6_output.c | 183 struct ipv6_txoptions *opt, int tclass) in ip6_xmit() argument 235 *(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | fl6->flowlabel; in ip6_xmit() 1214 int hlimit, int tclass, struct ipv6_txoptions *opt, struct flowi6 *fl6, in ip6_append_data() argument 1276 np->cork.tclass = tclass; in ip6_append_data() 1644 htonl(0x60000000 | ((int)np->cork.tclass << 20)); in ip6_push_pending_frames()
|
D | inet6_connection_sock.c | 251 res = ip6_xmit(sk, skb, &fl6, np->opt, np->tclass); in inet6_csk_xmit()
|
/linux-3.4.99/include/net/ |
D | inet_ecn.h | 53 inet6_sk(sk)->tclass |= INET_ECN_ECT_0; in INET_ECN_xmit() 60 inet6_sk(sk)->tclass &= ~INET_ECN_MASK; in INET_ECN_dontxmit() 68 if (INET_ECN_is_capable(inet6_sk(sk)->tclass)) \
|
D | transp_v6.h | 46 int *hlimit, int *tclass,
|
D | ipv6.h | 506 int tclass); 523 int tclass,
|
/linux-3.4.99/include/linux/ |
D | transport_class.h | 40 struct transport_class tclass; member 46 .tclass = { \
|
D | ipv6.h | 369 __u8 tclass; member 384 u8 tclass; member
|
/linux-3.4.99/include/linux/netfilter_bridge/ |
D | ebt_ip6.h | 36 __u8 tclass; member
|
/linux-3.4.99/net/ipv6/netfilter/ |
D | ip6t_REJECT.c | 49 const __u8 tclass = DEFAULT_TOS_VALUE; in send_reset() local 130 *(__be32 *)ip6h = htonl(0x60000000 | (tclass << 20)); in send_reset()
|
/linux-3.4.99/net/bridge/netfilter/ |
D | ebt_ip6.c | 49 FWINV(info->tclass != ipv6_get_dsfield(ih6), EBT_IP6_TCLASS)) in ebt_ip6_mt()
|