mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 13:37:02 +01:00
Merge pull request #28 in IAAS/cis-hardening from dev/cherlin/cis-root-dir-in-env to master
* commit '5b11b1628a690e0bbd9d34cd5b83dbe74ac6fba7': Expand tabs to 4 spaces and trim trailing spaces Remove unnecessary CIS_ROOT_DIR empty assignation Applying batch edit to all hardening/*.sh scripts for new CIS_ROOT_DIR management Changing CIS_ROOT_DIR management in env in bin/hardening.sh Change src/skel to allow setting CIS_ROOT_DIR in env and not just sourcing /etc/default/cis-hardening. Making the whole lib more versatile.
This commit is contained in:
commit
12fe049eba
@ -22,7 +22,6 @@ AUDIT_ALL=0
|
|||||||
AUDIT_ALL_ENABLE_PASSED=0
|
AUDIT_ALL_ENABLE_PASSED=0
|
||||||
ALLOW_SERVICE_LIST=0
|
ALLOW_SERVICE_LIST=0
|
||||||
SET_HARDENING_LEVEL=0
|
SET_HARDENING_LEVEL=0
|
||||||
CIS_ROOT_DIR=''
|
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
@ -136,16 +135,14 @@ while [[ $# > 0 ]]; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z $CIS_ROOT_DIR ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
fi
|
||||||
|
|
||||||
[ -r $CIS_ROOT_DIR/lib/constants.sh ] && . $CIS_ROOT_DIR/lib/constants.sh
|
[ -r $CIS_ROOT_DIR/lib/constants.sh ] && . $CIS_ROOT_DIR/lib/constants.sh
|
||||||
[ -r $CIS_ROOT_DIR/etc/hardening.cfg ] && . $CIS_ROOT_DIR/etc/hardening.cfg
|
[ -r $CIS_ROOT_DIR/etc/hardening.cfg ] && . $CIS_ROOT_DIR/etc/hardening.cfg
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -73,16 +73,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -73,16 +73,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -73,16 +73,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -89,15 +89,13 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
|
exit 128
|
||||||
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)
|
||||||
|
@ -41,16 +41,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -91,15 +91,13 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
|
exit 128
|
||||||
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)
|
||||||
|
@ -33,16 +33,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -67,16 +67,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -47,16 +47,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -29,16 +29,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -53,16 +53,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -54,16 +54,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -43,16 +43,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -43,16 +43,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -43,16 +43,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -58,16 +58,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -58,16 +58,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -58,16 +58,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -44,16 +44,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -46,16 +46,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -46,16 +46,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -44,16 +44,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -42,16 +42,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -56,16 +56,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -44,16 +44,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -44,16 +44,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -47,16 +47,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -54,16 +54,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -48,16 +48,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -48,16 +48,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -48,16 +48,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -61,16 +61,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -71,16 +71,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -105,16 +105,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -64,16 +64,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -63,16 +63,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening FILE, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -68,16 +68,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -56,16 +56,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -56,16 +56,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -56,16 +56,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -68,16 +68,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -68,16 +68,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -68,16 +68,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -43,16 +43,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -57,16 +57,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -45,16 +45,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -44,16 +44,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -68,16 +68,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -68,16 +68,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -68,16 +68,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -57,16 +57,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -57,16 +57,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -68,16 +68,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -68,16 +68,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -68,16 +68,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -57,16 +57,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -57,16 +57,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -57,16 +57,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -66,16 +66,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -53,16 +53,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -64,16 +64,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -43,16 +43,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -63,16 +63,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -65,16 +65,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -47,16 +47,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -46,16 +46,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -43,16 +43,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -44,16 +44,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -76,16 +76,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -48,16 +48,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -75,16 +75,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -47,16 +47,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -76,16 +76,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -75,16 +75,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -47,16 +47,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -56,16 +56,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -56,16 +56,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -56,16 +56,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -56,16 +56,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -56,16 +56,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -49,16 +49,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -49,16 +49,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -48,16 +48,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -48,16 +48,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -48,16 +48,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -57,16 +57,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
@ -59,16 +59,14 @@ check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Source Root Dir Parameter
|
# Source Root Dir Parameter
|
||||||
if [ ! -r /etc/default/cis-hardening ]; then
|
if [ -r /etc/default/cis-hardening ]; then
|
||||||
echo "There is no /etc/default/cis-hardening file, cannot source CIS_ROOT_DIR variable, aborting"
|
|
||||||
exit 128
|
|
||||||
else
|
|
||||||
. /etc/default/cis-hardening
|
. /etc/default/cis-hardening
|
||||||
if [ -z ${CIS_ROOT_DIR:-} ]; then
|
fi
|
||||||
echo "No CIS_ROOT_DIR variable, aborting"
|
if [ -z "$CIS_ROOT_DIR" ]; then
|
||||||
exit 128
|
echo "There is no /etc/default/cis-hardening file nor cis-hardening directory in current environment."
|
||||||
fi
|
echo "Cannot source CIS_ROOT_DIR variable, aborting."
|
||||||
fi
|
exit 128
|
||||||
|
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)
|
||||||
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
if [ -r $CIS_ROOT_DIR/lib/main.sh ]; then
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user