mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 21:47:02 +01:00
Merge pull request #14 in IAAS/cis-hardening from dev/thibault.dewailly/fixCron to master
* commit '7e951c020a866567a444502d7d45eb84faf94e25': Fixed default file error handling and quickstart Fixed point 9.1.8 cron rights as a chmod 600 disabled the cron.allow features (file must be world readable)
This commit is contained in:
commit
a286a3ffea
@ -27,6 +27,7 @@ hardening [INFO] Treating /opt/cis-hardening/bin/hardening/13.15_check_duplicate
|
|||||||
```console
|
```console
|
||||||
$ git clone https://github.com/ovh/debian-cis.git && cd debian-cis
|
$ git clone https://github.com/ovh/debian-cis.git && cd debian-cis
|
||||||
$ cp debian/default /etc/default/cis-hardening
|
$ cp debian/default /etc/default/cis-hardening
|
||||||
|
$ sed -i "s#CIS_ROOT_DIR=.*#CIS_ROOT_DIR='$(pwd)'#" /etc/default/cis-hardening
|
||||||
$ bin/hardening/1.1_install_updates.sh --audit-all
|
$ bin/hardening/1.1_install_updates.sh --audit-all
|
||||||
1.1_install_updates [INFO] Working on 1.1_install_updates
|
1.1_install_updates [INFO] Working on 1.1_install_updates
|
||||||
1.1_install_updates [INFO] Checking Configuration
|
1.1_install_updates [INFO] Checking Configuration
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -76,11 +76,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -76,11 +76,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -76,11 +76,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -81,11 +81,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -44,11 +44,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -50,11 +50,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -36,11 +36,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -70,11 +70,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -50,11 +50,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -32,11 +32,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -47,11 +47,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -46,11 +46,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -46,11 +46,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -46,11 +46,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -61,11 +61,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -61,11 +61,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -61,11 +61,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -47,11 +47,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -49,11 +49,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -49,11 +49,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -47,11 +47,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -45,11 +45,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -59,11 +59,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -47,11 +47,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -47,11 +47,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -50,11 +50,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -57,11 +57,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -51,11 +51,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -51,11 +51,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -51,11 +51,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -55,11 +55,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -74,11 +74,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -99,11 +99,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -67,11 +67,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -66,11 +66,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -71,11 +71,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -59,11 +59,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -59,11 +59,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -59,11 +59,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -71,11 +71,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -71,11 +71,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -71,11 +71,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -46,11 +46,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -60,11 +60,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -48,11 +48,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -47,11 +47,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -71,11 +71,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -71,11 +71,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -71,11 +71,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -60,11 +60,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -60,11 +60,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -71,11 +71,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -71,11 +71,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -71,11 +71,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -60,11 +60,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -60,11 +60,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -60,11 +60,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -69,11 +69,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -56,11 +56,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -67,11 +67,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -46,11 +46,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -66,11 +66,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -44,11 +44,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -50,11 +50,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -49,11 +49,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -46,11 +46,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -47,11 +47,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -79,11 +79,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -51,11 +51,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -78,11 +78,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -50,11 +50,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -79,11 +79,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -79,11 +79,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -50,11 +50,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -59,11 +59,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -59,11 +59,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -59,11 +59,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -59,11 +59,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -59,11 +59,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -51,11 +51,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -51,11 +51,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -50,11 +50,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -50,11 +50,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -50,11 +50,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -57,11 +57,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
@ -61,11 +61,16 @@ if [ ! -r /etc/default/cis-hardening ]; then
|
|||||||
exit 128
|
exit 128
|
||||||
else
|
else
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
echo "No CIS_ROOT_DIR variable, aborting"
|
||||||
exit 128
|
exit 128
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
# Main function, will call the proper functions given the configuration (audit, enabled, disabled)
|
||||||
[ -r $CIS_ROOT_DIR/lib/main.sh ] && . $CIS_ROOT_DIR/lib/main.sh
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
. $CIS_ROOT_DIR/lib/main.sh
|
||||||
|
else
|
||||||
|
echo "Cannot find main.sh, have you correctly defined your root directory? Current value is $CIS_ROOT_DIR in /etc/default/cis-hardening"
|
||||||
|
exit 128
|
||||||
|
fi
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user