Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[NETLABEL]: Fix build failure.

> the build with the attached .config failed, make ends with:
> ...
> : undefined reference to `cipso_v4_sock_getattr'
> net/built-in.o: In function `netlbl_socket_getattr':

...

It looks like I was stupid and made NetLabel depend on CONFIG_NET and not
CONFIG_INET, the patch below should fix this by making NetLabel depend on
CONFIG_INET and CONFIG_SECURITY. Please review and apply for 2.6.19.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Paul Moore and committed by
David S. Miller
38c94377 daccff02

+2 -3
+1 -2
net/Kconfig
··· 63 63 if INET 64 64 source "net/ipv4/Kconfig" 65 65 source "net/ipv6/Kconfig" 66 + source "net/netlabel/Kconfig" 66 67 67 68 endif # if INET 68 69 ··· 249 248 250 249 config WIRELESS_EXT 251 250 bool 252 - 253 - source "net/netlabel/Kconfig" 254 251 255 252 config FIB_RULES 256 253 bool
+1 -1
net/netlabel/Kconfig
··· 4 4 5 5 config NETLABEL 6 6 bool "NetLabel subsystem support" 7 - depends on NET && SECURITY 7 + depends on SECURITY 8 8 default n 9 9 ---help--- 10 10 NetLabel provides support for explicit network packet labeling