Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Odd SELinux messages

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

Odd SELinux messages

  • Quote

Post by xathin » Tue Jul 08, 2008 1:38 am

Hello,

I have been running SELinux on one of my computers for some time, and for the last while I have seen the "SELinux module not found!!! Please verify that it was installed." every time emerge, or anything using python is running that uses SELinux. When I use sestatus, it shows that SELinux is enabled, and appears to be operating, avc's are generated through dmesg. I followed the SELinux install guide when installing, and had no problems with the module loading previously.

Any one know why this is happening, or how to correct it?
Top
Hu
Administrator
Administrator
Posts: 24401
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Jul 08, 2008 2:39 am

As documented in Gentoo Linux Documentation - SELinux FAQ - Portage error messages, this typically means that dev-python/python-selinux is missing or damaged. You need to reinstall it, and then relabel every package which was merged while it was unavailable.
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Tue Jul 08, 2008 2:59 am

Which I've done already. Performed emerge python-selinux, then rlpkg -a -r. Still getting the message.
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Sat Jul 12, 2008 1:52 am

Does anyone else have any ideas why this would be happening? I am still getting the message with every emerge.
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Thu Jul 24, 2008 5:12 am

Still nobody with an answer to this? Am I the only person that is receiving these messages on a constant basis?

-- edit: I recently did a 'rlpkg -r' on all installed packages after re-emerging dev-python/python-selinux. It still displays the SELinux module not loaded message.
Top
ali3nx
l33t
l33t
User avatar
Posts: 732
Joined: Sun Sep 21, 2003 4:28 am
Location: Winnipeg, Canada
Contact:
Contact ali3nx
Website

  • Quote

Post by ali3nx » Thu Jul 24, 2008 6:37 am

you might have a chance of finding one of the hardened dev's on freenode in #gentoo-hardened
Top
KutuluMike
n00b
n00b
Posts: 2
Joined: Fri Jul 25, 2008 5:46 pm

  • Quote

Post by KutuluMike » Fri Jul 25, 2008 6:04 pm

The problem is with portage 2.2, and it's merely annoying. I'm heading over to file a bug report, but basically:

There's some sort of legacy compatibility layer on top of what used to be global variables in portgage 2.1, but are now handled via proxy classes in 2.2 (presumably in preparation for getting rid of them completely.) Any time any of these variables is read, the entire set of legacy globals is initialized, one of which is "selinux_isenabled". Trying to read the value of this global forces a check to see if the selinux module is loaded, which in many cases, it is not. So you get the warning message that portage is configured to use selinux, but the selinux module isn't loaded yet.

Portage will correctly load the module before it actually needs to use it -- you'll see that your files still get labeled and modules still get installed into the policy. So for now you can safely ignore the message.
Top
stvbckr
n00b
n00b
Posts: 14
Joined: Thu May 15, 2008 11:25 pm

  • Quote

Post by stvbckr » Tue Aug 05, 2008 8:57 pm

I'm getting the "!!! SELinux module not found. Please verify that it was installed." error too while running portage-2.1.4.4.

This started after doing some Python updates.

I tried re-emerging python-selinux but the error still occurs.
I also get the "ImportError: No module named selinux" when running rlpkg -a -r.

Any other ideas of things to try to correct this?
Top
JoKo
Tux's lil' helper
Tux's lil' helper
Posts: 141
Joined: Sun May 16, 2004 4:41 pm
Location: Xanthi, Greece

  • Quote

Post by JoKo » Tue Aug 12, 2008 10:12 am

Running /usr/sbin/python-updater as root could also help. At least for my case, that did the trick and vanish the "!!! SELinux module not found. Please verify that it was installed." messages.
Top
stvbckr
n00b
n00b
Posts: 14
Joined: Thu May 15, 2008 11:25 pm

  • Quote

Post by stvbckr » Tue Aug 12, 2008 11:08 pm

I thought I'd ran python-updater before but apparently not (or at least not successfully).

That did the trick, thanks!!
Top
Post Reply

10 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic