Home
last modified time | relevance | path

Searched refs:th (Results 1 – 4 of 4) sorted by relevance

/security/apparmor/
Dmatch.c80 struct table_header th; in unpack_table() local
89 th.td_id = be16_to_cpu(*(__be16 *) (blob)) - 1; in unpack_table()
90 if (th.td_id > YYTD_ID_MAX) in unpack_table()
92 th.td_flags = be16_to_cpu(*(__be16 *) (blob + 2)); in unpack_table()
93 th.td_lolen = be32_to_cpu(*(__be32 *) (blob + 8)); in unpack_table()
96 if (!(th.td_flags == YYTD_DATA16 || th.td_flags == YYTD_DATA32 || in unpack_table()
97 th.td_flags == YYTD_DATA8)) in unpack_table()
100 tsize = table_size(th.td_lolen, th.td_flags); in unpack_table()
106 table->td_id = th.td_id; in unpack_table()
107 table->td_flags = th.td_flags; in unpack_table()
[all …]
/security/
Dlsm_audit.c60 struct tcphdr *th = tcp_hdr(skb); in ipv4_skb_to_auditdata() local
61 if (th == NULL) in ipv4_skb_to_auditdata()
64 ad->u.net->sport = th->source; in ipv4_skb_to_auditdata()
65 ad->u.net->dport = th->dest; in ipv4_skb_to_auditdata()
134 struct tcphdr _tcph, *th; in ipv6_skb_to_auditdata() local
136 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in ipv6_skb_to_auditdata()
137 if (th == NULL) in ipv6_skb_to_auditdata()
140 ad->u.net->sport = th->source; in ipv6_skb_to_auditdata()
141 ad->u.net->dport = th->dest; in ipv6_skb_to_auditdata()
/security/selinux/
Dhooks.c4191 struct tcphdr _tcph, *th; in selinux_parse_skb_ipv4() local
4197 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in selinux_parse_skb_ipv4()
4198 if (th == NULL) in selinux_parse_skb_ipv4()
4201 ad->u.net->sport = th->source; in selinux_parse_skb_ipv4()
4202 ad->u.net->dport = th->dest; in selinux_parse_skb_ipv4()
4293 struct tcphdr _tcph, *th; in selinux_parse_skb_ipv6() local
4295 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in selinux_parse_skb_ipv6()
4296 if (th == NULL) in selinux_parse_skb_ipv6()
4299 ad->u.net->sport = th->source; in selinux_parse_skb_ipv6()
4300 ad->u.net->dport = th->dest; in selinux_parse_skb_ipv6()
/security/smack/
Dsmack_lsm.c3798 struct tcphdr _tcph, *th; in smk_skb_to_addr_ipv6() local
3819 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in smk_skb_to_addr_ipv6()
3820 if (th != NULL) in smk_skb_to_addr_ipv6()
3821 sip->sin6_port = th->source; in smk_skb_to_addr_ipv6()