Home
last modified time | relevance | path

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

123

/Linux-v5.10/drivers/base/
Dtransport_class.c51 int transport_class_register(struct transport_class *tclass) in transport_class_register() argument
53 return class_register(&tclass->class); in transport_class_register()
65 void transport_class_unregister(struct transport_class *tclass) in transport_class_unregister() argument
67 class_unregister(&tclass->class); in transport_class_unregister()
94 atc->container.class = &atc->tclass.class; in anon_transport_class_register()
99 atc->tclass.setup = anon_transport_dummy_function; in anon_transport_class_register()
100 atc->tclass.remove = anon_transport_dummy_function; in anon_transport_class_register()
124 struct transport_class *tclass = class_to_transport_class(cont->class); in transport_setup_classdev() local
127 if (tclass->setup) in transport_setup_classdev()
128 tclass->setup(tcont, dev, classdev); in transport_setup_classdev()
[all …]
/Linux-v5.10/security/selinux/
Davc.c50 u16 tclass; member
127 static inline int avc_hash(u32 ssid, u32 tsid, u16 tclass) in avc_hash() argument
129 return (ssid ^ (tsid<<2) ^ (tclass<<4)) & (AVC_CACHE_SLOTS - 1); in avc_hash()
417 u32 ssid, u32 tsid, u16 tclass, in avc_xperms_audit() argument
429 return slow_avc_audit(state, ssid, tsid, tclass, requested, in avc_xperms_audit()
518 static void avc_node_populate(struct avc_node *node, u32 ssid, u32 tsid, u16 tclass, struct av_deci… in avc_node_populate() argument
522 node->ae.tclass = tclass; in avc_node_populate()
527 u32 ssid, u32 tsid, u16 tclass) in avc_search_node() argument
533 hvalue = avc_hash(ssid, tsid, tclass); in avc_search_node()
537 tclass == node->ae.tclass && in avc_search_node()
[all …]
Dselinuxfs.c784 u16 tclass; in sel_write_validatetrans() local
823 if (sscanf(req, "%s %s %hu %s", oldcon, newcon, &tclass, taskcon) != 4) in sel_write_validatetrans()
838 rc = security_validate_transition_user(state, osid, nsid, tsid, tclass); in sel_write_validatetrans()
912 u16 tclass; in sel_write_access() local
933 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_access()
944 security_compute_av_user(state, ssid, tsid, tclass, &avd); in sel_write_access()
964 u16 tclass; in sel_write_create() local
993 nargs = sscanf(buf, "%s %s %hu %s", scon, tcon, &tclass, namebuf); in sel_write_create()
1035 length = security_transition_sid_user(state, ssid, tsid, tclass, in sel_write_create()
1067 u16 tclass; in sel_write_relabel() local
[all …]
/Linux-v5.10/include/trace/events/
Davc.h19 const char *tclass
22 TP_ARGS(sad, scontext, tcontext, tclass),
31 __string(tclass, tclass)
41 __assign_str(tclass, tclass);
46 __get_str(scontext), __get_str(tcontext), __get_str(tclass)
/Linux-v5.10/security/selinux/include/
Davc.h50 u16 tclass; member
101 u32 ssid, u32 tsid, u16 tclass,
127 u16 tclass, u32 requested, in avc_audit() argument
140 return slow_avc_audit(state, ssid, tsid, tclass, in avc_audit()
150 u16 tclass, u32 requested,
156 u16 tclass, u32 requested,
160 u16 tclass, u32 requested,
165 u32 ssid, u32 tsid, u16 tclass, u32 requested,
Dsecurity.h273 u16 tclass, struct av_decision *avd,
277 u32 ssid, u32 tsid, u16 tclass,
283 u16 tclass, struct av_decision *avd);
286 u32 ssid, u32 tsid, u16 tclass,
290 u32 ssid, u32 tsid, u16 tclass,
294 u16 tclass, u32 *out_sid);
297 u16 tclass, u32 *out_sid);
345 u16 tclass);
349 u16 tclass);
/Linux-v5.10/security/selinux/ss/
Dservices.c84 u16 tclass,
169 static u16 unmap_class(struct selinux_map *map, u16 tclass) in unmap_class() argument
171 if (tclass < map->size) in unmap_class()
172 return map->mapping[tclass].value; in unmap_class()
174 return tclass; in unmap_class()
193 u16 tclass, struct av_decision *avd, in map_decision() argument
196 if (tclass < map->size) { in map_decision()
197 struct selinux_mapping *mapping = &map->mapping[tclass]; in map_decision()
451 u16 tclass, in security_dump_masked_av() argument
469 tclass_name = sym_name(policydb, SYM_CLASSES, tclass - 1); in security_dump_masked_av()
[all …]
Dmls.c491 u16 tclass, in mls_compute_sid() argument
509 rtr.target_class = tclass; in mls_compute_sid()
514 if (tclass && tclass <= p->p_classes.nprim) { in mls_compute_sid()
515 cladatum = p->class_val_to_struct[tclass - 1]; in mls_compute_sid()
540 if ((tclass == p->process_class) || sock) in mls_compute_sid()
Dpolicydb.h87 u32 tclass; /* process class, or new object class */ member
96 u16 tclass; /* class of new object */ member
386 extern u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name);
Dpolicydb.c421 hash = ft->ttype ^ ft->tclass; in filenametr_hash()
439 v = ft1->tclass - ft2->tclass; in filenametr_cmp()
499 return key->role + (key->type << 3) + (key->tclass << 5); in role_trans_hash()
515 return key1->tclass - key2->tclass; in role_trans_cmp()
1793 u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name) in string_to_av_perm() argument
1799 if (!tclass || tclass > p->p_classes.nprim) in string_to_av_perm()
1802 cladatum = p->class_val_to_struct[tclass-1]; in string_to_av_perm()
1917 key.tclass = le32_to_cpu(buf[2]); in filename_trans_read_helper_compat()
1980 u32 len, ttype, tclass, ndatum, i; in filename_trans_read_helper() local
2000 tclass = le32_to_cpu(buf[1]); in filename_trans_read_helper()
[all …]
Dmls.h58 u16 tclass,
/Linux-v5.10/net/ipv6/
Dfib6_rules.c28 u8 tclass; member
35 if (r->dst.plen || r->src.plen || r->tclass) in fib6_rule_matchall()
326 if (r->tclass && r->tclass != ip6_tclass(fl6->flowlabel)) in fib6_rule_match()
376 rule6->tclass = frh->tos; in fib6_rule_configure()
409 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare()
430 frh->tos = rule6->tclass; in fib6_rule_fill()
Dtcp_ipv6.c513 u8 tclass; in tcp_v6_send_synack() local
530 tclass = sock_net(sk)->ipv4.sysctl_tcp_reflect_tos ? in tcp_v6_send_synack()
532 (np->tclass & INET_ECN_MASK) : in tcp_v6_send_synack()
533 np->tclass; in tcp_v6_send_synack()
535 if (!INET_ECN_is_capable(tclass) && in tcp_v6_send_synack()
537 tclass |= INET_ECN_ECT_0; in tcp_v6_send_synack()
544 tclass, sk->sk_priority); in tcp_v6_send_synack()
868 u8 tclass, __be32 label, u32 priority) in tcp_v6_send_response() argument
973 tclass & ~INET_ECN_MASK, priority); in tcp_v6_send_response()
1092 struct tcp_md5sig_key *key, u8 tclass, in tcp_v6_send_ack() argument
[all …]
/Linux-v5.10/drivers/infiniband/hw/mlx5/
Dah.c67 ah->av.tclass = grh->traffic_class; in create_ib_ah()
85 ah->av.tclass |= MLX5_ECN_ENABLED; in create_ib_ah()
141 ah->av.tclass); in mlx5_ib_query_ah()
/Linux-v5.10/include/linux/
Dtransport_class.h39 struct transport_class tclass; member
45 .tclass = { \
Dipv6.h191 u8 tclass; member
278 __u8 tclass; member
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_qdisc.c104 int tclass, child_index; in mlxsw_sp_qdisc_find() local
116 tclass = MLXSW_SP_PRIO_CHILD_TO_TCLASS(child_index); in mlxsw_sp_qdisc_find()
117 return &qdisc_state->tclass_qdiscs[tclass]; in mlxsw_sp_qdisc_find()
854 int tclass, child_index; in mlxsw_sp_setup_tc_fifo() local
876 tclass = MLXSW_SP_PRIO_CHILD_TO_TCLASS(child_index); in mlxsw_sp_setup_tc_fifo()
877 if (tclass < IEEE_8021QAZ_MAX_TCS) { in mlxsw_sp_setup_tc_fifo()
879 qdisc_state->future_fifos[tclass] = true; in mlxsw_sp_setup_tc_fifo()
881 qdisc_state->future_fifos[tclass] = false; in mlxsw_sp_setup_tc_fifo()
968 int tclass, i, band, backlog; in __mlxsw_sp_qdisc_ets_replace() local
973 tclass = MLXSW_SP_PRIO_BAND_TO_TCLASS(band); in __mlxsw_sp_qdisc_ets_replace()
[all …]
/Linux-v5.10/include/net/
Dinet_ecn.h57 inet6_sk(sk)->tclass |= INET_ECN_ECT_0; in INET_ECN_xmit()
64 inet6_sk(sk)->tclass &= ~INET_ECN_MASK; in INET_ECN_dontxmit()
72 if (INET_ECN_is_capable(inet6_sk(sk)->tclass)) \
Dipv6.h346 __s16 tclass; member
356 .tclass = -1, in ipcm6_init()
366 .tclass = np->tclass, in ipcm6_init_sk()
938 static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass, in ip6_flow_hdr() argument
941 *(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | flowlabel; in ip6_flow_hdr()
959 static inline __be32 ip6_make_flowinfo(unsigned int tclass, __be32 flowlabel) in ip6_make_flowinfo() argument
961 return htonl(tclass << IPV6_TCLASS_SHIFT) | flowlabel; in ip6_make_flowinfo()
988 __u32 mark, struct ipv6_txoptions *opt, int tclass, u32 priority);
/Linux-v5.10/include/uapi/linux/netfilter_bridge/
Debt_ip6.h38 __u8 tclass; member
/Linux-v5.10/drivers/net/ethernet/intel/ice/
Dice_ethtool_fdir.c167 fsp->h_u.usr_ip6_spec.tclass = rule->ip.v6.tc; in ice_get_ethtool_fdir_entry()
178 fsp->m_u.usr_ip6_spec.tclass = rule->mask.v6.tc; in ice_get_ethtool_fdir_entry()
198 fsp->h_u.tcp_ip6_spec.tclass = rule->ip.v6.tc; in ice_get_ethtool_fdir_entry()
199 fsp->m_u.tcp_ip6_spec.tclass = rule->mask.v6.tc; in ice_get_ethtool_fdir_entry()
925 if (tcp_ip6_spec->tclass) in ice_set_fdir_ip6_seg()
1008 if (usr_ip6_spec->tclass) in ice_set_fdir_ip6_usr_seg()
1563 input->ip.v6.tc = fsp->h_u.tcp_ip6_spec.tclass; in ice_set_fdir_input_set()
1570 input->mask.v6.tc = fsp->m_u.tcp_ip6_spec.tclass; in ice_set_fdir_input_set()
1578 input->ip.v6.tc = fsp->h_u.usr_ip6_spec.tclass; in ice_set_fdir_input_set()
1585 input->mask.v6.tc = fsp->m_u.usr_ip6_spec.tclass; in ice_set_fdir_input_set()
/Linux-v5.10/net/ipv6/netfilter/
Dnf_reject_ipv6.c70 const __u8 tclass = DEFAULT_TOS_VALUE; in nf_reject_ip6hdr_put() local
75 ip6_flow_hdr(ip6h, tclass, 0); in nf_reject_ip6hdr_put()
/Linux-v5.10/net/l2tp/
Dl2tp_ip6.c611 if (ipc6.tclass < 0) in l2tp_ip6_sendmsg()
612 ipc6.tclass = np->tclass; in l2tp_ip6_sendmsg()
614 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in l2tp_ip6_sendmsg()
/Linux-v5.10/net/sctp/
Dipv6.c199 __u8 tclass = np->tclass; in sctp_v6_xmit() local
206 tclass = transport->dscp & SCTP_DSCP_VAL_MASK; in sctp_v6_xmit()
208 if (INET_ECN_is_capable(tclass)) in sctp_v6_xmit()
218 tclass, sk->sk_priority); in sctp_v6_xmit()
801 inet6_sk(sk)->tclass |= INET_ECN_ECT_0; in sctp_v6_ecn_capable()
/Linux-v5.10/drivers/infiniband/hw/hns/
Dhns_roce_ah.c114 ah->av.gid_index, ah->av.hop_limit, ah->av.tclass); in hns_roce_query_ah()

123