From 5eed5789f9915547859931f596da0f52ab549427 Mon Sep 17 00:00:00 2001 From: samson Date: Tue, 11 Dec 2018 04:44:01 +0800 Subject: [PATCH] Fix a bug for 12.10, and remove the unwanted exceptions. --- bin/hardening/12.10_find_suid_files.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/hardening/12.10_find_suid_files.sh b/bin/hardening/12.10_find_suid_files.sh index d4bdc51..c28bd78 100755 --- a/bin/hardening/12.10_find_suid_files.sh +++ b/bin/hardening/12.10_find_suid_files.sh @@ -20,7 +20,7 @@ audit () { for BINARY in $RESULT; do if grep -q $BINARY <<< "$EXCEPTIONS"; then debug "$BINARY is confirmed as an exception" - RESULT=$(sed "s!$BINARY!!" <<< $RESULT) + RESULT=$(grep -wv "$BINARY" <<< $RESULT) fi done if [ ! -z "$RESULT" ]; then @@ -42,7 +42,7 @@ create_config() { cat <