]> Git Repo - linux.git/commit
bpf: Allow CGROUP_SKB eBPF program to access sk_buff
authorChenbo Feng <[email protected]>
Thu, 1 Jun 2017 01:15:59 +0000 (18:15 -0700)
committerDavid S. Miller <[email protected]>
Fri, 2 Jun 2017 18:24:40 +0000 (14:24 -0400)
commitfb9a307d11d62749d75b404f15517d73f5d6e148
tree6ccbff4ca2822fe980aebf7acb3b6c0d9b224dec
parentd0a65400eba812e86aa5676524dad09af3292f5a
bpf: Allow CGROUP_SKB eBPF program to access sk_buff

This allows cgroup eBPF program to classify packet based on their
protocol or other detail information. Currently program need
CAP_NET_ADMIN privilege to attach a cgroup eBPF program, and A
process with CAP_NET_ADMIN can already see all packets on the system,
for example, by creating an iptables rules that causes the packet to
be passed to userspace via NFLOG.

Signed-off-by: Chenbo Feng <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
kernel/bpf/verifier.c
This page took 0.056184 seconds and 4 git commands to generate.