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
path: root/lynis
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2019-07-03 16:07:46 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-07-03 16:07:46 +0300
commit2e1ec2c32f903aa53444798a47b52c57bed9ddb9 (patch)
tree56161baa59d1c598b45383dd12afe611734fb4da /lynis
parentbc88775d0e23daa111f67aa6d705d629228c6498 (diff)
Change variable name to better indicate what it does
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis13
1 files changed, 5 insertions, 8 deletions
diff --git a/lynis b/lynis
index 727e2894..8cacca37 100755
--- a/lynis
+++ b/lynis
@@ -24,7 +24,9 @@
#
# Code quality: don't allow using undefined variables
set -o nounset
-
+#
+#################################################################################
+#
# In Solaris /bin/sh is not POSIX, but /usr/xpg4/bin/sh is.
# Switch to /usr/xpg4/bin/sh if it exists and we are not already running it.
test "$_" != "/usr/xpg4/bin/sh" && test -f /usr/xpg4/bin/sh && exec /usr/xpg4/bin/sh "$0" "$@"
@@ -137,8 +139,7 @@ Make sure to execute ${PROGRAM_NAME} from untarred directory or check your insta
#################################################################################
#
# Perform a basic check for permissions. After including functions, using SafePerms()
- WARN_ON_FILE_ISSUES=1
- WARN_ON_FILE_ISSUES_ASKED=0
+ IGNORE_FILE_PERMISSION_ISSUES=0
FILES_TO_CHECK="consts functions"
@@ -190,14 +191,10 @@ Make sure to execute ${PROGRAM_NAME} from untarred directory or check your insta
printf "\n Option 2) Change ownership of the related files (or full directory).\n\n Commands (full directory):\n # cd ..\n # chown -R 0:0 lynis\n # cd lynis\n # ./lynis audit system"
fi
printf "\n\n[ Press ENTER to continue, or CTRL+C to cancel ]"
- WARN_ON_FILE_ISSUES_ASKED=1
+ IGNORE_FILE_PERMISSION_ISSUES=1
read DUMMY
fi
- if [ ${WARN_ON_FILE_ISSUES_ASKED} -eq 1 ]; then
- WARN_ON_FILE_ISSUES=0
- fi
-
# Now include files if permissions are correct, or user decided to continue
. ${INCLUDEDIR}/consts
. ${INCLUDEDIR}/functions