From de487e964c3b270b9b11ac317164e3615824cdb7 Mon Sep 17 00:00:00 2001 From: Tristan PILAT Date: Fri, 22 Mar 2019 14:53:32 +0100 Subject: [PATCH] Add VERBOSE message for the IS_TMPNOEXEC check --- evocheck.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/evocheck.sh b/evocheck.sh index 069f7b4..a54073b 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -148,6 +148,9 @@ fi if [ "$IS_TMPNOEXEC" = 1 ]; then mount | grep "on /tmp" | grep -q noexec || echo 'IS_TMPNOEXEC FAILED!' + if [[ "$VERBOSE" == 1 ]]; then + echo "/tmp should be mounted with the noexec option" + fi fi if [ "$IS_TMOUTPROFILE" = 1 ]; then