add hardening templating and several enhancements

This commit is contained in:
Stéphane Lesimple
2017-05-18 18:40:09 +02:00
committed by Stéphane Lesimple
parent 78569b5583
commit dfaf4c2093
386 changed files with 701 additions and 449 deletions

View File

@ -11,6 +11,8 @@
set -e # One error, it's over
set -u # One variable unset, it's over
HARDENING_LEVEL=3
PATTERN='^destination.*(tcp|udp)[[:space:]]*\([[:space:]]*\".*\"[[:space:]]*\)'
# This function will be called if the script status is on enabled / audit mode
@ -35,6 +37,14 @@ apply () {
fi
}
# This function will create the config file for this check with default values
create_config() {
cat <<EOF
status=disabled
SYSLOG_BASEDIR='/etc/syslog-ng'
EOF
}
# This function will check config parameters required
check_config() {
: