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>2022-02-10 13:52:11 +0300
committerGitHub <noreply@github.com>2022-02-10 13:52:11 +0300
commite0b5dcf7d467f89b5c3896c67bd5743e9e3dfb95 (patch)
tree4369ccce34e0753bc40ae0e7fca24d99f2b33190
parent7fbcede421ca8483a9c285f314da013d55ea21d9 (diff)
parent3bfff0ca6297f202f196c672721d2c6f78df76df (diff)
Merge pull request #1226 from konstruktoid/1220
Extend HasCorrectCheckPermissions logging
-rw-r--r--include/functions5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/functions b/include/functions
index 271faf19..de36ed11 100644
--- a/include/functions
+++ b/include/functions
@@ -1325,9 +1325,8 @@
CHECK_PERMISSION=$(echo "${CHECK_PERMISSION}" | ${AWKBINARY} '{printf "%03d",$1}')
# First try stat command
- LogText "Test: checking if file ${CHECKFILE} has the permissions set to ${CHECK_PERMISSION} or more restrictive"
+ LogText "Test: checking if file ${CHECKFILE} has the permissions set to ${CHECK_PERMISSION} (${CHECKPERMISSION_FULL}) or more restrictive"
if [ -n "${STATBINARY}" ]; then
-
case ${OS} in
*BSD | "macOS")
# BSD and macOS have no --format, only short notation
@@ -1393,7 +1392,7 @@
fi
done
- LogText "Outcome: permissions of file ${CHECKFILE} are not matching expected value (${DATA} != ${CHECKPERMISSION_FULL})"
+ LogText "Outcome: permissions of file ${CHECKFILE} are not matching expected value (${DATA} != ${CHECK_PERMISSION})"
# No match, return exit code 1
return 1
fi