This commit is contained in:
Bob Mottram 2017-09-01 12:24:56 +01:00
parent ca5428ca33
commit 7e5401e8cc
1 changed files with 10 additions and 4 deletions

View File

@ -131,14 +131,20 @@ function stig_spinner {
wait $1 wait $1
} }
function disallow_package {
package_name=$1
if service --status-all | grep "+.*${package_name}";then
apt-get -yq remove --purge ${package_name}
apt -yq autoremove
fi
}
function fix_stig { function fix_stig {
if [[ $RUN_STIG != 'fix' ]]; then if [[ $RUN_STIG != 'fix' ]]; then
return return
fi fi
if service --status-all | grep "+.*xinetd";then disallow_package xinetd
apt-get -yq remove --purge xinetd
apt -yq autoremove
fi
lockdown_permissions lockdown_permissions
} }