Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 520700

Summary: sys-apps/net-tools does not enable SELinux support properly
Product: Gentoo Linux Reporter: Sven Vermeulen (RETIRED) <swift>
Component: SELinuxAssignee: Sven Vermeulen (RETIRED) <swift>
Status: RESOLVED FIXED    
Severity: normal CC: selinux
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sven Vermeulen (RETIRED) gentoo-dev 2014-08-23 14:02:55 UTC
The net-tools package currently tries to enable SELinux support with "set_opt SELINUX". However, this needs to be "set_opt HAVE_SELINUX". If not, SELinux support is not enabled.

--- net-tools-1.60_p20130513023548.ebuild       19 Jul 2014 16:24:44 -0000      1.13
+++ net-tools-1.60_p20130513023548.ebuild       23 Aug 2014 14:01:06 -0000
@@ -76,7 +76,7 @@
        set_opt HAVE_HWIB has_version '>=sys-kernel/linux-headers-2.6'
        set_opt HAVE_HWTR has_version '<sys-kernel/linux-headers-3.5'
        set_opt HAVE_HWSTRIP has_version '<sys-kernel/linux-headers-3.6'
-       set_opt SELINUX use selinux
+       set_opt HAVE_SELINUX use selinux
        if use static ; then
                append-flags -static
                append-ldflags -static

The same fix is needed in the net-tools-9999.ebuild file.

I can revbump and commit if wanted.

Reproducible: Always
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2015-07-15 12:56:53 UTC
Added to the ~arch versions.
Comment 2 Jason Zaman gentoo-dev 2017-01-23 12:47:53 UTC
1.60_p20160215155418 is stable now and has the fix.