diff options
author | sersut <serdar@opscode.com> | 2013-05-17 08:55:10 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-05-17 08:55:10 -0700 |
commit | f125bbd1e1d0995d67e5fcac733e47fe33d35f57 (patch) | |
tree | 4d20d4a396f23ebc538276e158fab27f578492a4 /lib/chef/provider/file.rb | |
parent | d5b8b1b87024fcf3a842e722474ac5f47b84183d (diff) | |
download | chef-f125bbd1e1d0995d67e5fcac733e47fe33d35f57.tar.gz |
Make selinux util a module.
Diffstat (limited to 'lib/chef/provider/file.rb')
-rw-r--r-- | lib/chef/provider/file.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/provider/file.rb b/lib/chef/provider/file.rb index 809f6ab425..06291a32a0 100644 --- a/lib/chef/provider/file.rb +++ b/lib/chef/provider/file.rb @@ -48,6 +48,7 @@ class Chef include Chef::Mixin::EnforceOwnershipAndPermissions include Chef::Mixin::Checksum include Chef::Mixin::ShellOut + include Chef::Util::Selinux extend Chef::Deprecation::Warnings include Chef::Deprecation::Provider::File @@ -253,9 +254,9 @@ class Chef # case. def do_selinux(recursive = false) if resource_updated? && Chef::Config[:enable_selinux_file_permission_fixup] - if Chef::Util::Selinux.selinux_enabled? + if selinux_enabled? converge_by("restore selinux security context") do - Chef::Util::Selinux.restore_security_context(@new_resource_path, recursive) + restore_security_context(@new_resource_path, recursive) end else Chef::Log.debug "selinux utilities can not be found. Skipping selinux permission fixup." |