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
}
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 {
if [[ $RUN_STIG != 'fix' ]]; then
return
fi
if service --status-all | grep "+.*xinetd";then
apt-get -yq remove --purge xinetd
apt -yq autoremove
fi
disallow_package xinetd
lockdown_permissions
}