no autorelabel
This commit is contained in:
parent
1ac267a9ee
commit
138f938831
|
@ -30,9 +30,11 @@ class selinux::config(
|
|||
if $mode == 'enforcing' or $mode == 'permissive' or $mode == 'disabled' {
|
||||
exec { "set-selinux-config-to-${mode}":
|
||||
command => "sed -i \"s@^\\(SELINUX=\\).*@\\1${mode}@\" /etc/selinux/config",
|
||||
command => "rm -f /.autorelabel",
|
||||
unless => "grep -q \"SELINUX=${mode}\" /etc/selinux/config",
|
||||
}
|
||||
exec { "disable-selinux-relabeling":
|
||||
command => "rm -f /.autorelabel",
|
||||
}
|
||||
|
||||
case $mode {
|
||||
permissive,disabled: {
|
||||
|
|
Loading…
Reference in New Issue