From 4df51eaca0770618d5593c4a07eb9529077da114 Mon Sep 17 00:00:00 2001 From: "Sean E. Millichamp" Date: Mon, 6 Oct 2008 17:30:38 -0400 Subject: New and improved tests for file type SELinux contexts --- lib/puppet/util/selinux.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet') 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_])?/ -- cgit