summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSean E. Millichamp <sean@bruenor.org>2008-09-30 14:34:48 -0400
committerJames Turnbull <james@lovedthanlost.net>2008-10-03 14:33:33 +1000
commitc8314821a2bd0f1bb60397492735d3775836416f (patch)
treee08412900469599a8a7584138b556ffa8a341a2b /lib
parent772e9b217aafb22da3a7572085f631da54274937 (diff)
downloadpuppet-c8314821a2bd0f1bb60397492735d3775836416f.tar.gz
puppet-c8314821a2bd0f1bb60397492735d3775836416f.tar.xz
puppet-c8314821a2bd0f1bb60397492735d3775836416f.zip
Add detected defaults for existing SELinux file properties
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/type/file/selcontext.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/type/file/selcontext.rb b/lib/puppet/type/file/selcontext.rb
index 6e36a024a..a344f20ac 100644
--- a/lib/puppet/type/file/selcontext.rb
+++ b/lib/puppet/type/file/selcontext.rb
@@ -59,18 +59,21 @@ module Puppet
desc "What the SELinux User context of the file should be."
@event = :file_changed
+ defaultto { self.retrieve_default_context(:seluser) }
end
Puppet.type(:file).newproperty(:selrole, :parent => Puppet::SELFileContext) do
desc "What the SELinux Role context of the file should be."
@event = :file_changed
+ defaultto { self.retrieve_default_context(:selrole) }
end
Puppet.type(:file).newproperty(:seltype, :parent => Puppet::SELFileContext) do
desc "What the SELinux Type context of the file should be."
@event = :file_changed
+ defaultto { self.retrieve_default_context(:seltype) }
end
end