Issue #9054 has been updated by Cristian Ciupitu.

+1 for not doing anything if SELinux is disabled. I'm using 
puppet-2.6.11-1.el6.noarch on an OpenVZ container and I'm affected by this.
----------------------------------------
Bug #9054: selboolean reports error if selinux is not enabled
https://projects.puppetlabs.com/issues/9054

Author: Darrell Fuhriman
Status: Needs Decision
Priority: Normal
Assignee: Sean Millichamp
Category: SELinux
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


If an selboolean is defined for a class, but is executing on a host that does 
not have SELinux enabled, an error is reported. e.g.:

Execution of '/usr/sbin/getsebool httpd_can_network_connect' returned 1: 
/usr/sbin/getsebool:  SELinux is disabled

It should not be considered a failure, but perhaps a warning if you try to 
set/get an SELinux boolean on a host that does not have selinux enabled. 

Before setting/getting the boolean, a quick call to getenforce could be made, 
and a warning issued if it returns "Disabled".






-- 
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://projects.puppetlabs.com/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