summaryrefslogtreecommitdiff
authorAndy Lutomirski <luto@kernel.org>2016-12-16 16:33:45 (GMT)
committer Chenbo Feng <fengc@google.com>2017-05-22 22:30:59 (GMT)
commitcde30d1a2b30db834f80b6c7812e1ec53fc52ffc (patch)
tree2205da1cfbee82bc71aa89e27ec50bb8955f5033
parentc00662a5879a2cf9413079dfbcbc2ee7f62ea2a8 (diff)
downloadcommon-cde30d1a2b30db834f80b6c7812e1ec53fc52ffc.zip
common-cde30d1a2b30db834f80b6c7812e1ec53fc52ffc.tar.gz
common-cde30d1a2b30db834f80b6c7812e1ec53fc52ffc.tar.bz2
UPSTREAM: cgroup: Fix CGROUP_BPF config
Cherry-pick from commit 483c4933ea09b7aa625b9d64af286fc22ec7e419 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> Bug: 30950746 Change-Id: Ib41ef78fba02eb9e592558ddbf06f9ec0aa337b6
Diffstat
-rw-r--r--init/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 8d60e29..95270dd 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1241,7 +1241,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.