[PATCH] net: make CONFIG_NETLABEL explicitly dependent on CONFIG_INET

DORMANTno replies

From: Paul Moore <hidden>
Date: 2012-11-30 15:35:51
Subsystem: networking [general], networking [labeled] (netlabel, labeled ipsec, secmark), the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Paul Moore, Linus Torvalds

This should resolve an issue found during testing with random
configuration files.

  net/built-in.o: In function `netlbl_cfg_cipsov4_add':
  (.text+0x61757): undefined reference to `cipso_v4_doi_add'
  net/built-in.o: In function `netlbl_cfg_cipsov4_del':
  (.text+0x6177d): undefined reference to `cipso_v4_doi_remove'
  [... and so on ...]


Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Paul Moore <redacted>
---
 net/netlabel/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/netlabel/Kconfig b/net/netlabel/Kconfig
index 56958c8..f272826 100644
--- a/net/netlabel/Kconfig
+++ b/net/netlabel/Kconfig
@@ -4,7 +4,7 @@
 
 config NETLABEL
 	bool "NetLabel subsystem support"
-	depends on SECURITY
+	depends on SECURITY && INET
 	default n
 	---help---
 	  NetLabel provides support for explicit network packet labeling
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help