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:
authormboelen <michael@cisofy.com>2015-12-21 23:17:15 +0300
committermboelen <michael@cisofy.com>2015-12-21 23:17:15 +0300
commitd16b38eff83a8dca405e21e1c34205289f3d0832 (patch)
treed9db1eac3d4ead003f0e1b4fbfbabf0ddeb66c1e /include/tests_homedirs
parent83a44827e03543146e39c37c33f14ebca6f40a29 (diff)
Rename of logtext and report functions, upcoming year change
Diffstat (limited to 'include/tests_homedirs')
-rw-r--r--include/tests_homedirs28
1 files changed, 14 insertions, 14 deletions
diff --git a/include/tests_homedirs b/include/tests_homedirs
index 595c2fff..b0f5c06b 100644
--- a/include/tests_homedirs
+++ b/include/tests_homedirs
@@ -5,7 +5,7 @@
# Lynis
# ------------------
#
-# Copyright 2007-2015, Michael Boelen (michael.boelen@cisofy.com)
+# Copyright 2007-2016, Michael Boelen (michael.boelen@cisofy.com)
# Web site: https://cisofy.com
#
# Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
@@ -33,14 +33,14 @@
Register --test-no HOME-9302 --weight L --network NO --description "Create list with home directories"
if [ ${SKIPTEST} -eq 0 ]; then
# Read sixth field of /etc/passwd
- logtext "Test: query /etc/passwd to obtain home directories"
+ LogText "Test: query /etc/passwd to obtain home directories"
FIND=`${AWKBINARY} -F: '{ if ($1 !~ "#") print $6 }' /etc/passwd | sort -u`
for I in ${FIND}; do
if [ -d ${I} ]; then
- logtext "Result: found home directory: ${I} (directory exists)"
- report "home_directory[]=${I}"
+ LogText "Result: found home directory: ${I} (directory exists)"
+ Report "home_directory[]=${I}"
else
- logtext "Result: found home directory: ${I} (directory does not exist)"
+ LogText "Result: found home directory: ${I} (directory does not exist)"
fi
done
fi
@@ -60,18 +60,18 @@
fi
if [ "${FIND}" = "" ]; then
Display --indent 2 --text "- Checking shell history files" --result OK --color GREEN
- logtext "Result: Ok, history files are type 'file'."
+ LogText "Result: Ok, history files are type 'file'."
else
Display --indent 2 --text "- Checking shell history files" --result WARNING --color RED
- logtext "Result: the following files seem to be of the wrong file type:"
- logtext "Output: ${FIND}"
- logtext "Info: above files could be redirected files to avoid logging and should be investigated"
+ LogText "Result: the following files seem to be of the wrong file type:"
+ LogText "Output: ${FIND}"
+ LogText "Info: above files could be redirected files to avoid logging and should be investigated"
ReportWarning ${TEST_NO} "M" "Incorrect file type found for shell history file"
fi
- logtext "Remarks: History files are normally of the type 'file'. Symbolic links and other types can be riskful."
+ LogText "Remarks: History files are normally of the type 'file'. Symbolic links and other types can be riskful."
else
Display --indent 2 --text "- Checking shell history files" --result SKIPPED --color WHITE
- logtext "Result: Homedirs is empty, test will be skipped"
+ LogText "Result: Homedirs is empty, test will be skipped"
fi
fi
#
@@ -94,9 +94,9 @@
if [ ${SKIPTEST} -eq 0 ]; then
IGNORE_HOME_DIRS=`grep "^config:ignore_home_dir:" ${PROFILE} | awk -F: '{ print $3 }'`
if [ "${IGNORE_HOME_DIRS}" = "" ]; then
- logtext "Result: IGNORE_HOME_DIRS empty, no paths excluded"
+ LogText "Result: IGNORE_HOME_DIRS empty, no paths excluded"
else
- logtext "Output: ${IGNORE_HOME_DIRS}"
+ LogText "Output: ${IGNORE_HOME_DIRS}"
fi
fi
#
@@ -107,4 +107,4 @@ wait_for_keypress
#
#================================================================================
-# Lynis - Copyright 2007-2015, Michael Boelen, CISOfy - https://cisofy.com
+# Lynis - Copyright 2007-2016, Michael Boelen, CISOfy - https://cisofy.com