From dcd0e0947ddd7174f6dfd40a359898f2f6da6ef7 Mon Sep 17 00:00:00 2001 From: Samson-W Date: Sat, 17 Nov 2018 23:54:45 +0800 Subject: [PATCH] Add Level info to 99.1 99.2 --- bin/hardening/99.1_timeout_tty.sh | 2 ++ bin/hardening/99.2_disable_usb_devices.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bin/hardening/99.1_timeout_tty.sh b/bin/hardening/99.1_timeout_tty.sh index f79fec2..763c3d6 100755 --- a/bin/hardening/99.1_timeout_tty.sh +++ b/bin/hardening/99.1_timeout_tty.sh @@ -11,6 +11,8 @@ set -e # One error, it's over set -u # One variable unset, it's over +HARDENING_LEVEL=2 + USER='root' PATTERN='TMOUT=' VALUE='600' diff --git a/bin/hardening/99.2_disable_usb_devices.sh b/bin/hardening/99.2_disable_usb_devices.sh index 298c473..0584598 100755 --- a/bin/hardening/99.2_disable_usb_devices.sh +++ b/bin/hardening/99.2_disable_usb_devices.sh @@ -11,6 +11,8 @@ set -e # One error, it's over set -u # One variable unset, it's over +HARDENING_LEVEL=4 + USER='root' PATTERN='ACTION=="add", SUBSYSTEMS=="usb", TEST=="authorized_default", ATTR{authorized_default}="0"' # We do test disabled by default, whitelist is up to you FILES_TO_SEARCH='/etc/udev/rules.d'