Check if setuid bit is set

This commit is contained in:
Michael Boelen 2019-07-10 19:28:26 +02:00
parent 09d8832a0b
commit d41b1d9c5f
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 3 additions and 0 deletions

3
lynis
View File

@ -67,6 +67,9 @@
#
#################################################################################
#
# Check setuid bit
if [ -u "$0" ]; then echo "The called binary has the set-user-id bit - As this is unusual, execution will be stopped."; exit 1; fi
# Work directory
WORKDIR=$(pwd)