diff options
author | Sean E. Millichamp <sean@bruenor.org> | 2008-10-06 17:30:38 -0400 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-10-08 12:27:35 +1100 |
commit | 4df51eaca0770618d5593c4a07eb9529077da114 (patch) | |
tree | c3f2d4f46a44b8eb18df2a52d35f24acf628a1d0 /lib/puppet/util/selinux.rb | |
parent | 253d4df1f49e1516a111557b98b29509c39b41e0 (diff) | |
download | puppet-4df51eaca0770618d5593c4a07eb9529077da114.tar.gz puppet-4df51eaca0770618d5593c4a07eb9529077da114.tar.xz puppet-4df51eaca0770618d5593c4a07eb9529077da114.zip |
New and improved tests for file type SELinux contexts
Diffstat (limited to 'lib/puppet/util/selinux.rb')
-rw-r--r-- | lib/puppet/util/selinux.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util/selinux.rb b/lib/puppet/util/selinux.rb index 6a9bcaf79..c25773344 100644 --- a/lib/puppet/util/selinux.rb +++ b/lib/puppet/util/selinux.rb @@ -51,7 +51,7 @@ module Puppet::Util::SELinux # out to the three (or four) component parts. Supports :seluser, :selrole, # :seltype, and on systems with range support, :selrange. def parse_selinux_context(component, context) - if context == "unlabeled" + if context.nil? or context == "unlabeled" return nil end unless context =~ /^[a-z0-9_]+:[a-z0-9_]+:[a-z0-9_]+(:[a-z0-9_])?/ |