Home
last modified time | relevance | path

Searched refs:tclass (Results 1 – 37 of 37) sorted by relevance

/linux-4.1.27/drivers/base/
Dtransport_class.c48 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-4.1.27/security/selinux/
Davc.c49 u16 tclass; member
84 static inline int avc_hash(u32 ssid, u32 tsid, u16 tclass) in avc_hash() argument
86 return (ssid ^ (tsid<<2) ^ (tclass<<4)) & (AVC_CACHE_SLOTS - 1); in avc_hash()
94 static void avc_dump_av(struct audit_buffer *ab, u16 tclass, u32 av) in avc_dump_av() argument
104 perms = secclass_map[tclass-1].perms; in avc_dump_av()
130 static void avc_dump_query(struct audit_buffer *ab, u32 ssid, u32 tsid, u16 tclass) in avc_dump_query() argument
152 BUG_ON(tclass >= ARRAY_SIZE(secclass_map)); in avc_dump_query()
153 audit_log_format(ab, " tclass=%s", secclass_map[tclass-1].name); in avc_dump_query()
288 static void avc_node_populate(struct avc_node *node, u32 ssid, u32 tsid, u16 tclass, struct av_deci… in avc_node_populate() argument
292 node->ae.tclass = tclass; in avc_node_populate()
[all …]
Dselinuxfs.c712 u16 tclass; in sel_write_access() local
731 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_access()
744 security_compute_av_user(ssid, tsid, tclass, &avd); in sel_write_access()
762 u16 tclass; in sel_write_create() local
788 nargs = sscanf(buf, "%s %s %hu %s", scon, tcon, &tclass, namebuf); in sel_write_create()
832 length = security_transition_sid_user(ssid, tsid, tclass, in sel_write_create()
862 u16 tclass; in sel_write_relabel() local
882 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_relabel()
895 length = security_change_sid(ssid, tsid, tclass, &newsid); in sel_write_relabel()
980 u16 tclass; in sel_write_member() local
[all …]
Dhooks.c1226 u16 tclass, in selinux_proc_get_sid() argument
1247 rc = security_genfs_sid("proc", path, tclass, sid); in selinux_proc_get_sid()
1254 u16 tclass, in selinux_proc_get_sid() argument
1691 u16 tclass) in may_create() argument
1716 rc = security_transition_sid(sid, dsec->sid, tclass, in may_create()
1722 rc = avc_has_perm(sid, newsid, tclass, FILE__CREATE, &ad); in may_create()
/linux-4.1.27/security/selinux/ss/
Dservices.c97 u16 tclass,
195 static u16 unmap_class(u16 tclass) in unmap_class() argument
197 if (tclass < current_mapping_size) in unmap_class()
198 return current_mapping[tclass].value; in unmap_class()
200 return tclass; in unmap_class()
218 static void map_decision(u16 tclass, struct av_decision *avd, in map_decision() argument
221 if (tclass < current_mapping_size) { in map_decision()
222 unsigned i, n = current_mapping[tclass].num_perms; in map_decision()
226 if (avd->allowed & current_mapping[tclass].perms[i]) in map_decision()
228 if (allow_unknown && !current_mapping[tclass].perms[i]) in map_decision()
[all …]
Dmls.c507 u16 tclass, in mls_compute_sid() argument
525 rtr.target_class = tclass; in mls_compute_sid()
530 if (tclass && tclass <= policydb.p_classes.nprim) { in mls_compute_sid()
531 cladatum = policydb.class_val_to_struct[tclass - 1]; in mls_compute_sid()
553 if ((tclass == policydb.process_class) || (sock == true)) in mls_compute_sid()
Dpolicydb.h90 u32 tclass; /* process class, or new object class */ member
98 u16 tclass; /* class of new object */ member
367 extern u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name);
Dmls.h50 u16 tclass,
Dpolicydb.c209 hash = ft->stype ^ ft->ttype ^ ft->tclass; in filenametr_hash()
231 v = ft1->tclass - ft2->tclass; in filenametr_cmp()
1813 u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name) in string_to_av_perm() argument
1819 if (!tclass || tclass > p->p_classes.nprim) in string_to_av_perm()
1822 cladatum = p->class_val_to_struct[tclass-1]; in string_to_av_perm()
1959 ft->tclass = le32_to_cpu(buf[2]); in filename_trans_read()
2408 tr->tclass = le32_to_cpu(buf[0]); in policydb_read()
2410 tr->tclass = p->process_class; in policydb_read()
2414 !policydb_class_isvalid(p, tr->tclass) || in policydb_read()
2650 buf[0] = cpu_to_le32(tr->tclass); in role_trans_write()
[all …]
/linux-4.1.27/security/selinux/include/
Davc.h55 u16 tclass; member
104 int slow_avc_audit(u32 ssid, u32 tsid, u16 tclass,
130 u16 tclass, u32 requested, in avc_audit() argument
139 return slow_avc_audit(ssid, tsid, tclass, in avc_audit()
146 u16 tclass, u32 requested,
151 u16 tclass, u32 requested,
Dsecurity.h115 u16 tclass, struct av_decision *avd);
118 u16 tclass, struct av_decision *avd);
120 int security_transition_sid(u32 ssid, u32 tsid, u16 tclass,
123 int security_transition_sid_user(u32 ssid, u32 tsid, u16 tclass,
127 u16 tclass, u32 *out_sid);
130 u16 tclass, u32 *out_sid);
157 u16 tclass);
/linux-4.1.27/net/ipv6/
Dfib6_rules.c29 u8 tclass; member
173 if (r->tclass && r->tclass != ip6_tclass(fl6->flowlabel)) in fib6_rule_match()
209 rule6->tclass = frh->tos; in fib6_rule_configure()
227 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare()
248 frh->tos = rule6->tclass; in fib6_rule_fill()
Dip6_output.c157 struct ipv6_txoptions *opt, int tclass) in ip6_xmit() argument
209 ip6_flow_hdr(hdr, tclass, ip6_make_flowlabel(net, skb, fl6->flowlabel, in ip6_xmit()
1162 int hlimit, int tclass, struct ipv6_txoptions *opt, in ip6_setup_cork() argument
1209 v6_cork->tclass = tclass; in ip6_setup_cork()
1547 int tclass, struct ipv6_txoptions *opt, struct flowi6 *fl6, in ip6_append_data() argument
1562 tclass, opt, rt, fl6); in ip6_append_data()
1649 ip6_flow_hdr(hdr, v6_cork->tclass, in __ip6_make_skb()
1732 int hlimit, int tclass, in ip6_make_skb() argument
1752 err = ip6_setup_cork(sk, &cork, &v6_cork, hlimit, tclass, opt, rt, fl6); in ip6_make_skb()
Ddatagram.c565 int tclass = ipv6_get_dsfield(ipv6_hdr(skb)); in ip6_datagram_recv_specific_ctl() local
566 put_cmsg(msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); in ip6_datagram_recv_specific_ctl()
688 int *hlimit, int *tclass, int *dontfrag) in ip6_datagram_send_ctl() argument
927 *tclass = tc; in ip6_datagram_send_ctl()
Draw.c748 int tclass = -1; in rawv6_sendmsg() local
828 &hlimit, &tclass, &dontfrag); in rawv6_sendmsg()
879 if (tclass < 0) in rawv6_sendmsg()
880 tclass = np->tclass; in rawv6_sendmsg()
894 len, 0, hlimit, tclass, opt, &fl6, (struct rt6_info *)dst, in rawv6_sendmsg()
Dudp.c1117 int tclass = -1; in udpv6_sendmsg() local
1250 &hlimit, &tclass, &dontfrag); in udpv6_sendmsg()
1303 if (tclass < 0) in udpv6_sendmsg()
1304 tclass = np->tclass; in udpv6_sendmsg()
1315 sizeof(struct udphdr), hlimit, tclass, opt, in udpv6_sendmsg()
1342 sizeof(struct udphdr), hlimit, tclass, opt, &fl6, in udpv6_sendmsg()
Dicmp.c522 np->tclass, NULL, &fl6, (struct rt6_info *)dst, in icmp6_send()
560 u8 tclass; in icmpv6_echo_reply() local
609 tclass = ipv6_get_dsfield(ipv6_hdr(skb)); in icmpv6_echo_reply()
611 sizeof(struct icmp6hdr), hlimit, tclass, NULL, &fl6, in icmpv6_echo_reply()
Dipv6_sockglue.c342 np->tclass = val; in do_ipv6_setsockopt()
1050 int tclass = (int)ip6_tclass(np->rcv_flowinfo); in do_ipv6_getsockopt() local
1052 put_cmsg(&msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); in do_ipv6_getsockopt()
1152 val = np->tclass; in do_ipv6_getsockopt()
Dping.c175 np->tclass, NULL, &fl6, rt, in ping_v6_sendmsg()
Dinet6_connection_sock.c248 np->tclass); in inet6_csk_xmit()
Dtcp_ipv6.c470 np->tclass); in tcp_v6_send_synack()
736 u8 tclass, u32 label) in tcp_v6_send_response() argument
822 ip6_xmit(ctl_sk, buff, &fl6, NULL, tclass); in tcp_v6_send_response()
905 struct tcp_md5sig_key *key, u8 tclass, in tcp_v6_send_ack() argument
909 tclass, label); in tcp_v6_send_ack()
/linux-4.1.27/include/linux/
Dtransport_class.h40 struct transport_class tclass; member
46 .tclass = { \
Dipv6.h136 u8 tclass; member
218 __u8 tclass; member
/linux-4.1.27/include/net/
Dinet_ecn.h55 inet6_sk(sk)->tclass |= INET_ECN_ECT_0; in INET_ECN_xmit()
62 inet6_sk(sk)->tclass &= ~INET_ECN_MASK; in INET_ECN_dontxmit()
70 if (INET_ECN_is_capable(inet6_sk(sk)->tclass)) \
Dtransp_v6.h45 int *hlimit, int *tclass, int *dontfrag);
Dipv6.h759 static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass, in ip6_flow_hdr() argument
762 *(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | flowlabel; in ip6_flow_hdr()
796 struct ipv6_txoptions *opt, int tclass);
804 int tclass, struct ipv6_txoptions *opt, struct flowi6 *fl6,
820 int hlimit, int tclass, struct ipv6_txoptions *opt,
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dah.c44 ah->av.tclass = ah_attr->grh.traffic_class; in create_ib_ah()
79 ah_attr->grh.traffic_class = ah->av.tclass; in mlx5_ib_query_ah()
/linux-4.1.27/net/l2tp/
Dl2tp_ip6.c496 int tclass = -1; in l2tp_ip6_sendmsg() local
565 &hlimit, &tclass, &dontfrag); in l2tp_ip6_sendmsg()
613 if (tclass < 0) in l2tp_ip6_sendmsg()
614 tclass = np->tclass; in l2tp_ip6_sendmsg()
625 ulen, transhdrlen, hlimit, tclass, opt, in l2tp_ip6_sendmsg()
/linux-4.1.27/include/uapi/linux/netfilter_bridge/
Debt_ip6.h36 __u8 tclass; member
/linux-4.1.27/net/ipv6/netfilter/
Dnf_reject_ipv6.c74 const __u8 tclass = DEFAULT_TOS_VALUE; in nf_reject_ip6hdr_put() local
79 ip6_flow_hdr(ip6h, tclass, 0); in nf_reject_ip6hdr_put()
/linux-4.1.27/net/bridge/netfilter/
Debt_ip6.c49 FWINV(info->tclass != ipv6_get_dsfield(ih6), EBT_IP6_TCLASS)) in ebt_ip6_mt()
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dmcg.c87 u8 tclass; member
396 src->tclass != dst->tclass) in cmp_rec()
1030 group->rec.tclass, in sysfs_show_group()
/linux-4.1.27/include/linux/mlx5/
Dqp.h228 u8 tclass; member
/linux-4.1.27/net/sctp/
Dipv6.c223 return ip6_xmit(sk, skb, fl6, np->opt, np->tclass); in sctp_v6_xmit()
722 inet6_sk(sk)->tclass |= INET_ECN_ECT_0; in sctp_v6_ecn_capable()
/linux-4.1.27/net/ipv4/
Dtcp_minisocks.c302 tw->tw_tclass = np->tclass; in tcp_time_wait()
Dinet_diag.c152 inet6_sk(sk)->tclass) < 0) in inet_sk_diag_fill()
/linux-4.1.27/net/dccp/
Dipv6.c226 np->tclass); in dccp_v6_send_response()