Issue #2911 has been reported by Matthias Saou.

----------------------------------------
Bug #2911: SELinux type should work with uppercase letters
http://projects.reductivelabs.com/issues/2911

Author: Matthias Saou
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: SELinux
Target version: 
Affected version: 0.25.1
Keywords: 
Branch: 


In lib/puppet/util/selinux.rb there is this :
<pre>
        unless context =~ 
/^([a-z0-9_]+):([a-z0-9_]+):([a-z0-9_]+)(?::([a-zA-Z0-9:,._-]+))?/
            raise Puppet::Error, "Invalid context to parse: #{context}"
        end
</pre>
I've been seeing that Error with the following context : 
@system_u:object_r:NetworkManager_initrc_exec_t:s0@

The fix is trivial, adding A-Z for the 3rd component just like in the 4th 
component, and works for me. Trivial patch attached.


-- 
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