Lines Matching refs:skb
41 static int selinux_netlbl_sidlookup_cached(struct sk_buff *skb, in selinux_netlbl_sidlookup_cached() argument
52 netlbl_cache_add(skb, family, secattr); in selinux_netlbl_sidlookup_cached()
141 void selinux_netlbl_err(struct sk_buff *skb, u16 family, int error, int gateway) in selinux_netlbl_err() argument
143 netlbl_skbuff_err(skb, family, error, gateway); in selinux_netlbl_err()
188 int selinux_netlbl_skbuff_getsid(struct sk_buff *skb, in selinux_netlbl_skbuff_getsid() argument
202 rc = netlbl_skbuff_getattr(skb, family, &secattr); in selinux_netlbl_skbuff_getsid()
204 rc = selinux_netlbl_sidlookup_cached(skb, family, in selinux_netlbl_skbuff_getsid()
225 int selinux_netlbl_skbuff_setsid(struct sk_buff *skb, in selinux_netlbl_skbuff_setsid() argument
236 sk = skb_to_full_sk(skb); in selinux_netlbl_skbuff_setsid()
253 rc = netlbl_skbuff_setattr(skb, family, secattr); in selinux_netlbl_skbuff_setsid()
272 struct sk_buff *skb) in selinux_netlbl_sctp_assoc_request() argument
293 if (ip_hdr(skb)->version == 4) { in selinux_netlbl_sctp_assoc_request()
295 addr4.sin_addr.s_addr = ip_hdr(skb)->saddr; in selinux_netlbl_sctp_assoc_request()
297 } else if (IS_ENABLED(CONFIG_IPV6) && ip_hdr(skb)->version == 6) { in selinux_netlbl_sctp_assoc_request()
299 addr6.sin6_addr = ipv6_hdr(skb)->saddr; in selinux_netlbl_sctp_assoc_request()
429 struct sk_buff *skb, in selinux_netlbl_sock_rcv_skb() argument
442 rc = netlbl_skbuff_getattr(skb, family, &secattr); in selinux_netlbl_sock_rcv_skb()
444 rc = selinux_netlbl_sidlookup_cached(skb, family, in selinux_netlbl_sock_rcv_skb()
469 netlbl_skbuff_err(skb, family, rc, 0); in selinux_netlbl_sock_rcv_skb()