mirror of
https://github.com/ovh/debian-cis.git
synced 2025-07-14 21:02:18 +02:00
add hardening templating and several enhancements
This commit is contained in:

committed by
Stéphane Lesimple

parent
78569b5583
commit
dfaf4c2093
@ -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() {
|
||||
:
|
||||
|
Reference in New Issue
Block a user