Issue #1327 has been updated by nak.

File selinux.rb added


I found a small bug in selinux.rb; it didn't work properly if the selinux 
kernel module was loaded, but selinux was disabled.

I mirrored the code that sestatus uses to detect when selinux is enabled (it 
checks the current context, and makes sure it is not "kernel").

I've attached a new version of selinux.rb with the changes.

----------------------------------------
Feature #1327: Add facts for SELinux state
http://projects.reductivelabs.com/issues/1327

Author: fs
Status: Accepted
Priority: Low
Assigned to: luke
Category: library
Target version: 
Complexity: Easy
Patch: Code
Keywords: 


As part of the work I'm doing to add SELinux support to Puppet 
(http://spook.wpi.edu) it would be very useful if Facter were to have some 
SELinux facts.  At this point, I have identified two facts indicating the 
overall global state of SELinux of a machine which should be widely useful, 
both for what configuration settings should be pushed out and for auditing the 
SELinux state of a machine:

* selinux - whether the machine supports SELinux, and if so, what mode it is in 
(enforcing, permissive, disabled)
* selinuxpolicy - which policy is loaded (strict, targeted, mls)

I'm attaching a first pass at code for these facts that works for me.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to