summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorSean E. Millichamp <sean@bruenor.org>2008-10-06 17:30:38 -0400
committerJames Turnbull <james@lovedthanlost.net>2008-10-08 12:27:35 +1100
commit4df51eaca0770618d5593c4a07eb9529077da114 (patch)
treec3f2d4f46a44b8eb18df2a52d35f24acf628a1d0 /lib/puppet
parent253d4df1f49e1516a111557b98b29509c39b41e0 (diff)
downloadpuppet-4df51eaca0770618d5593c4a07eb9529077da114.tar.gz
puppet-4df51eaca0770618d5593c4a07eb9529077da114.tar.xz
puppet-4df51eaca0770618d5593c4a07eb9529077da114.zip
New and improved tests for file type SELinux contexts
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/util/selinux.rb2
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_])?/