cgroup: Fix CGROUP_BPF config
authorAndy Lutomirski <[email protected]>
Fri, 16 Dec 2016 16:33:45 +0000 (08:33 -0800)
committerDavid S. Miller <[email protected]>
Sun, 18 Dec 2016 02:42:45 +0000 (21:42 -0500)
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]>
init/Kconfig

index 405120b5f13e843caeb70cf87ee70458bc2746dd..95110270700748eb1e9f3b53a7ceb4c9b016f109 100644 (file)
@@ -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.