Private/RedHat/Set-UnattendedKickstartAntiMalware.ps1
function Set-UnattendedKickstartAntiMalware { param ( [Parameter(Mandatory = $true)] [bool]$Enabled ) if ($Enabled) { $Script:un.Add("selinux --enforcing") } else { $Script:un.Add("selinux --permissive") # Not a great idea to disable selinux alltogether } } |