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-03-12 23:47:16 -07:00
2017-02-07 13:07:47 -05:00
2017-04-11 14:54:19 -04:00
2017-04-03 19:04:48 -07:00
2015-04-02 14:04:59 -04:00
2015-11-22 11:54:10 -05:00
2016-11-16 18:32:02 -05:00
2015-10-26 22:24:22 -07:00
2017-03-24 13:27:19 -07:00