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
..
2016-11-15 11:50:20 -05:00
2017-04-11 14:54:19 -04:00
2017-04-11 14:38:43 -04:00
2017-01-09 16:56:27 -05:00
2017-01-25 13:17:47 -05:00
2017-03-22 15:45:45 -07:00
2017-03-22 15:45:45 -07:00
2017-03-22 15:45:45 -07:00
2017-04-11 14:38:43 -04:00