Add VERBOSE message for the IS_TMPNOEXEC check

This commit is contained in:
Tristan PILAT 2019-03-22 14:53:32 +01:00
parent 53cd10f4a8
commit de487e964c
1 changed files with 3 additions and 0 deletions

View File

@ -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