Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520700 - sys-apps/net-tools does not enable SELinux support properly
Summary: sys-apps/net-tools does not enable SELinux support properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-23 14:02 UTC by Sven Vermeulen (RETIRED)
Modified: 2017-01-23 12:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.