Permalink
Browse files

selinux::permissive should actually be permissive

  • Loading branch information...
jtimberman committed Sep 12, 2011
1 parent 6444464 commit dc99f3de4d6264846b68ed2f68d6bd9abef1a226
Showing with 5 additions and 3 deletions.
  1. +5 −3 selinux/recipes/permissive.rb
@@ -18,14 +18,16 @@
# limitations under the License.
#
execute "enable selinux enforcement" do
not_if "selinuxenabled"
command "setenforce 1"
execute "enable selinux as permissive" do
not_if "getenforce | egrep -qx 'Permissive|Disabled'"
command "setenforce 0"
ignore_failure true
action :run
end
template "/etc/sysconfig/selinux" do
source "sysconfig/selinux.erb"
not_if "getenforce | grep -qx 'Disabled'"
variables(
:selinux => "permissive",
:selinuxtype => "targeted",

0 comments on commit dc99f3d

Please sign in to comment.