summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorChenbo Feng2017-06-01 03:16:00 +0200
committerDavid S. Miller2017-06-02 20:24:40 +0200
commit80b7d81912d807f161d55e9c2c9cc81061666f83 (patch)
treea37d8f96dc9e71aedb6528138208bde42fbabf61 /net/ipv4/tcp_output.c
parentbpf: Allow CGROUP_SKB eBPF program to access sk_buff (diff)
downloadkernel-qcow2-linux-80b7d81912d807f161d55e9c2c9cc81061666f83.tar.gz
kernel-qcow2-linux-80b7d81912d807f161d55e9c2c9cc81061666f83.tar.xz
kernel-qcow2-linux-80b7d81912d807f161d55e9c2c9cc81061666f83.zip
bpf: Remove the capability check for cgroup skb eBPF program
Currently loading a cgroup skb eBPF program require a CAP_SYS_ADMIN capability while attaching the program to a cgroup only requires the user have CAP_NET_ADMIN privilege. We can escape the capability check when load the program just like socket filter program to make the capability requirement consistent. Change since v1: Change the code style in order to be compliant with checkpatch.pl preference Signed-off-by: Chenbo Feng <fengc@google.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions