summaryrefslogtreecommitdiffstats
path: root/init/Kconfig
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2016-12-16 11:33:45 -0500
committerDavid S. Miller <davem@davemloft.net>2016-12-17 21:42:45 -0500
commit483c4933ea09b7aa625b9d64af286fc22ec7e419 (patch)
tree26be0741c7daabd2e3d7f10a10f525c41702ce14 /init/Kconfig
parent67a72a58913ab0f2f239e771547a58987c266960 (diff)
cgroup: Fix CGROUP_BPF config
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 <luto@kernel.org> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'init/Kconfig')
-rw-r--r--init/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 405120b5f13e..951102707007 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1156,7 +1156,8 @@ config CGROUP_PERF
1156 1156
1157config CGROUP_BPF 1157config CGROUP_BPF
1158 bool "Support for eBPF programs attached to cgroups" 1158 bool "Support for eBPF programs attached to cgroups"
1159 depends on BPF_SYSCALL && SOCK_CGROUP_DATA 1159 depends on BPF_SYSCALL
1160 select SOCK_CGROUP_DATA
1160 help 1161 help
1161 Allow attaching eBPF programs to a cgroup using the bpf(2) 1162 Allow attaching eBPF programs to a cgroup using the bpf(2)
1162 syscall command BPF_PROG_ATTACH. 1163 syscall command BPF_PROG_ATTACH.