linux/kernel/bpf
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
..
arraymap.c bpf: remove struct bpf_map_type_list 2017-04-11 14:38:43 -04:00
bpf_lru_list.c
bpf_lru_list.h
cgroup.c bpf: pass sk to helper functions 2017-04-11 14:54:19 -04:00
core.c
hashtab.c bpf: remove struct bpf_map_type_list 2017-04-11 14:38:43 -04:00
helpers.c
inode.c
lpm_trie.c bpf: remove struct bpf_map_type_list 2017-04-11 14:38:43 -04:00
Makefile
map_in_map.c
map_in_map.h
percpu_freelist.c
percpu_freelist.h
stackmap.c bpf: remove struct bpf_map_type_list 2017-04-11 14:38:43 -04:00
syscall.c bpf: remove struct bpf_map_type_list 2017-04-11 14:38:43 -04:00
verifier.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-04-06 08:24:51 -07:00