diff --git a/manifests/config.pp b/manifests/config.pp index cef6d7ab..49e22bd4 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -39,7 +39,7 @@ case $mode { permissive, disabled: { $sestatus = '0' - if $mode == 'disabled' and getvar('::selinux_current_mode') == 'permissive' { + if $mode == 'disabled' and defined('$::selinux_current_mode') and $::selinux_current_mode == 'permissive' { notice('A reboot is required to fully disable SELinux. SELinux will operate in Permissive mode until a reboot') } }