diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-10 20:28:26 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-10 20:28:26 +0300 |
commit | d41b1d9c5fc265c327c65fc85d01a2430216f5c1 (patch) | |
tree | d8672bdd5c401e1f86778cd5de10aacff778f968 /lynis | |
parent | 09d8832a0b4b922e90b37c358afdeceda2b603c3 (diff) |
Check if setuid bit is set
Diffstat (limited to 'lynis')
-rwxr-xr-x | lynis | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |