* [PATCH] cgroup: Fix CGROUP_BPF config
@ 2016-12-16 16:33 Andy Lutomirski
2016-12-16 18:18 ` Alexei Starovoitov
2016-12-18 2:43 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Andy Lutomirski @ 2016-12-16 16:33 UTC (permalink / raw)
To: Alexei Starovoitov, Daniel Mack; +Cc: Network Development, Andy Lutomirski
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>
---
init/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/init/Kconfig b/init/Kconfig
index aafafeb0c117..223b734abccd 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -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.
--
2.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] cgroup: Fix CGROUP_BPF config
2016-12-16 16:33 [PATCH] cgroup: Fix CGROUP_BPF config Andy Lutomirski
@ 2016-12-16 18:18 ` Alexei Starovoitov
2016-12-18 2:43 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Alexei Starovoitov @ 2016-12-16 18:18 UTC (permalink / raw)
To: Andy Lutomirski; +Cc: Daniel Mack, Network Development
On Fri, Dec 16, 2016 at 08:33:45AM -0800, Andy Lutomirski wrote:
> 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] cgroup: Fix CGROUP_BPF config
2016-12-16 16:33 [PATCH] cgroup: Fix CGROUP_BPF config Andy Lutomirski
2016-12-16 18:18 ` Alexei Starovoitov
@ 2016-12-18 2:43 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2016-12-18 2:43 UTC (permalink / raw)
To: luto; +Cc: alexei.starovoitov, daniel, netdev
From: Andy Lutomirski <luto@kernel.org>
Date: Fri, 16 Dec 2016 08:33:45 -0800
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-18 2:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-16 16:33 [PATCH] cgroup: Fix CGROUP_BPF config Andy Lutomirski
2016-12-16 18:18 ` Alexei Starovoitov
2016-12-18 2:43 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox