Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request spiette#22 from djjudas21/selinux_status
Browse files Browse the repository at this point in the history
Switch to a more robust way of changing SELinux status
  • Loading branch information
jfryman committed Jan 15, 2015
2 parents d0c76ef + 4622a18 commit 8290992
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@
}

exec { "change-selinux-status-to-${mode}":
command => "echo ${sestatus} > /${::selinux::params::sx_fs_mount}/enforce",
unless => "grep -q '${sestatus}' /${::selinux::params::sx_fs_mount}/enforce",
command => "setenforce ${sestatus}",
unless => "getenforce | grep -qi ${mode}",
path => '/bin:/usr/bin:/usr/sbin',
}
} else {
fail("Invalid mode specified for SELinux: ${mode}")
Expand Down

0 comments on commit 8290992

Please sign in to comment.