Skip to contentSkip to conversation

SECURITY_SELINUX depends on NET

PATCH New Adrian Bunk 1 participant 1 message May 29, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SECURITY_SELINUX depends on NET

SECURITY_SELINUX=y and NET=n results in the following compile error in 2.6.7-mm1:

<-- snip -->

...
LD .tmp_vmlinux1
security/built-in.o(.text+0x97e4): In function `selnl_notify':
: undefined reference to alloc_skb' security/built-in.o(.text+0x988a): In function selnl_notify':
: undefined reference to netlink_broadcast' security/built-in.o(.text+0x989e): In function selnl_notify':
: undefined reference to skb_over_panic' security/built-in.o(.text+0x98ca): In function selnl_notify':
: undefined reference to __kfree_skb' security/built-in.o(.init.text+0x2eb): In function selnl_init':
: undefined reference to netlink_kernel_create' security/built-in.o(.init.text+0x303): In function selnl_init':
: undefined reference to `netlink_set_nonroot'
make: *** [.tmp_vmlinux1] Error 1

<-- snip -->

The following patch fixes this issue:

security/selinux/Kconfig renamed from security/selinux/Kconfig.old +1 -1
@@ -1,6 +1,6 @@
 config SECURITY_SELINUX
 	bool "NSA SELinux Support"
-	depends on SECURITY
+	depends on SECURITY && NET
 	default n
 	help
 	  This selects NSA Security-Enhanced Linux (SELinux).

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed