Willem de Bruijn 8f917bba00 bpf: pass sk to helper functions
BPF helper functions access socket fields through skb->sk. This is not
set in ingress cgroup and socket filters. The association is only made
in skb_set_owner_r once the filter has accepted the packet. Sk is
available as socket lookup has taken place.

Temporarily set skb->sk to sk in these cases.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-04-11 14:54:19 -04:00
..
2017-04-11 14:54:19 -04:00
2017-01-12 07:01:56 -07:00
2017-02-22 10:30:38 -08:00
2017-02-22 17:08:33 -08:00
2017-03-24 21:51:33 +08:00
2017-02-27 18:43:47 -08:00
2016-12-22 22:58:37 -05:00