mirror of https://github.com/CISOfy/lynis.git
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…
Reference in New Issue