lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1483369266-7207-1-git-send-email-augustocaringi@gmail.com>
Date:   Mon,  2 Jan 2017 15:01:06 +0000
From:   Augusto Mecking Caringi <augustocaringi@...il.com>
To:     Andy Lutomirski <luto@...nel.org>,
        Alexei Starovoitov <ast@...nel.org>,
        "David S . Miller" <davem@...emloft.net>
Cc:     linux-kernel@...r.kernel.org,
        Augusto Mecking Caringi <augustocaringi@...il.com>
Subject: [PATCH] cgroup: Fix CGROUP_BPF config dependency when !NET

CGROUP_BPF selects SOCK_CGROUP_DATA which depends on NET

So, if NET is not set the following warning is given:

warning: (CGROUP_BPF) selects SOCK_CGROUP_DATA which has unmet direct
dependencies (NET)

Fix it by making CGROUP_BPF dependent of NET

Signed-off-by: Augusto Mecking Caringi <augustocaringi@...il.com>
---
 init/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/Kconfig b/init/Kconfig
index 223b734..4d93004 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1156,7 +1156,7 @@ config CGROUP_PERF
 
 config CGROUP_BPF
 	bool "Support for eBPF programs attached to cgroups"
-	depends on BPF_SYSCALL
+	depends on BPF_SYSCALL && NET
 	select SOCK_CGROUP_DATA
 	help
 	  Allow attaching eBPF programs to a cgroup using the bpf(2)
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ