From f4328deeb24102d8be9bde5d30494a599da95fce Mon Sep 17 00:00:00 2001 From: Thibault Ayanides Date: Fri, 28 May 2021 15:00:58 +0200 Subject: [PATCH] Fix unbound variable (#102) --- bin/hardening/1.1.21_sticky_bit_world_writable_folder.sh | 2 ++ bin/hardening/6.1.10_find_world_writable_file.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bin/hardening/1.1.21_sticky_bit_world_writable_folder.sh b/bin/hardening/1.1.21_sticky_bit_world_writable_folder.sh index 6e1c64d..86c45c0 100755 --- a/bin/hardening/1.1.21_sticky_bit_world_writable_folder.sh +++ b/bin/hardening/1.1.21_sticky_bit_world_writable_folder.sh @@ -17,6 +17,8 @@ HARDENING_LEVEL=2 # shellcheck disable=2034 DESCRIPTION="Set sticky bit on world writable directories to prevent users from deleting or renaming files that are not owned by them." +EXCEPTIONS='' + # This function will be called if the script status is on enabled / audit mode audit() { info "Checking if setuid is set on world writable Directories" diff --git a/bin/hardening/6.1.10_find_world_writable_file.sh b/bin/hardening/6.1.10_find_world_writable_file.sh index 4a5bb19..297a579 100755 --- a/bin/hardening/6.1.10_find_world_writable_file.sh +++ b/bin/hardening/6.1.10_find_world_writable_file.sh @@ -17,6 +17,8 @@ HARDENING_LEVEL=3 # shellcheck disable=2034 DESCRIPTION="Ensure no world writable files exist" +EXCEPTIONS='' + # This function will be called if the script status is on enabled / audit mode audit() { info "Checking if there are world writable files"