Skip to content

Commit

Permalink
cgroup: Fix CGROUP_BPF config
Browse files Browse the repository at this point in the history
CGROUP_BPF depended on SOCK_CGROUP_DATA which can't be manually
enabled, making it rather challenging to turn CGROUP_BPF on.

Signed-off-by: Andy Lutomirski <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
amluto authored and davem330 committed Dec 18, 2016
1 parent 67a72a5 commit 483c493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,8 @@ config CGROUP_PERF

config CGROUP_BPF
bool "Support for eBPF programs attached to cgroups"
depends on BPF_SYSCALL && SOCK_CGROUP_DATA
depends on BPF_SYSCALL
select SOCK_CGROUP_DATA
help
Allow attaching eBPF programs to a cgroup using the bpf(2)
syscall command BPF_PROG_ATTACH.
Expand Down

0 comments on commit 483c493

Please sign in to comment.