Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2019-07-18 12:36:47 +0300
committerGitHub <noreply@github.com>2019-07-18 12:36:47 +0300
commit0e9e0fab36f189f8def6b3e605fb6b8e7caa3138 (patch)
tree1ce39289d223936370e304c280f3d653d77086ff
parent87fef1c27b65ccf6f54babc3f203d3d05510dca5 (diff)
parentd1cb74e7d9c8a6e515cbd2760f552fa11485cccb (diff)
Merge pull request #730 from Marzal/Marzal-PRIVILEGED
Fix $privileged var being overwrite
-rw-r--r--include/consts1
-rwxr-xr-xlynis3
2 files changed, 2 insertions, 2 deletions
diff --git a/include/consts b/include/consts
index 4f8c5246..e78ca8e9 100644
--- a/include/consts
+++ b/include/consts
@@ -219,7 +219,6 @@ unset LANG
POSTGRES_RUNNING=0
PREVIOUS_TEST="No test ID"
PREVIOUS_TS=0
- PRIVILEGED=0
PROFILES=""
PROFILEVALUE=""
PSBINARY="ps"
diff --git a/lynis b/lynis
index 35a023ef..992fb3dd 100755
--- a/lynis
+++ b/lynis
@@ -129,7 +129,8 @@
PRIVILEGED=1
PENTESTINGMODE=0
else
- # Set to pentesting mode if scan is with root privileges
+ PRIVILEGED=0
+ # Set to pentesting mode if scan is without root privileges
PENTESTINGMODE=1
fi