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:
authorgkrystev <gkrystev@gmail.com>2018-07-24 20:08:08 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2018-07-24 20:08:08 +0300
commit13d631781c9623bbdffa03a35dcbe9e94af008a9 (patch)
tree818ec4542bad01436653ec706b3808af62d5e26a /include/tests_shells
parentfd729c222de9fab645dd3628690106c7143bfdcb (diff)
Fix for umask check in case of multiple files (#560)
In case when umask is checked in multiple files and in some of the files except the last one a weak umask is found, the tool reports weak mask for the rest of the files. In the example bellow, the weak umask is only in /etc/csh.cshrc. However, the check /etc/profile is reported weak as well. Expected: Checking default umask values Checking default umask in /etc/bashrc [ OK ] Checking default umask in /etc/csh.cshrc [ WEAK ] Checking default umask in /etc/profile [ OK ] Actual: Checking default umask values Checking default umask in /etc/bashrc [ OK ] Chhhhecking default umask in /etc/csh.cshrc [ WEAK ] Chhhhecking default umask in /etc/profile [ WEAK ]
Diffstat (limited to 'include/tests_shells')
-rw-r--r--include/tests_shells2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_shells b/include/tests_shells
index 7b689a14..155483f0 100644
--- a/include/tests_shells
+++ b/include/tests_shells
@@ -235,9 +235,9 @@
Register --test-no SHLL-6230 --weight H --network NO --category security --description "Perform umask check for shell configurations"
if [ ${SKIPTEST} -eq 0 ]; then
FOUND=0
- HARDENING_POSSIBLE=0
Display --indent 2 --text "- Checking default umask values"
for FILE in ${SHELL_CONFIG_FILES}; do
+ HARDENING_POSSIBLE=0
FIND=""
if [ -f ${FILE} ]; then
LogText "Result: file ${FILE} exists"