mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-30 17:24:32 +02:00
More extensive file check
This commit is contained in:
parent
aaba4932b0
commit
585ddc391e
2
lynis
2
lynis
@ -958,7 +958,7 @@ ${NORMAL}
|
||||
for INCLUDE_TEST in ${INCLUDE_TESTS}; do
|
||||
INCLUDE_FILE="${INCLUDEDIR}/tests_${INCLUDE_TEST}"
|
||||
if [ -f ${INCLUDE_FILE} ]; then
|
||||
if SafePerms ${INCLUDE_FILE}; then
|
||||
if SafeFile ${INCLUDE_FILE}; then
|
||||
. ${INCLUDE_FILE}
|
||||
else
|
||||
LogText "Exception: skipping test category ${INCLUDE_TEST}, file ${INCLUDE_FILE} has bad permissions (should be 640, 600 or 400)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user