diff options
| author | Willem de Bruijn <[email protected]> | 2017-04-11 18:08:08 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-04-11 18:54:19 +0000 |
| commit | 8f917bba0042f1e3b7693743fbe9782709e936e7 (patch) | |
| tree | 5adc788308ed37a25a9911c42149638052f24b47 /net/tipc/socket.c | |
| parent | devlink: fix return value check in devlink_dpipe_header_put() (diff) | |
| download | kernel-8f917bba0042f1e3b7693743fbe9782709e936e7.tar.gz kernel-8f917bba0042f1e3b7693743fbe9782709e936e7.zip | |
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 <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions
