mirror of https://github.com/CISOfy/lynis.git
Show warning for writable configuration file
This commit is contained in:
parent
6520400ca4
commit
ae6ca56581
|
@ -450,11 +450,9 @@ wait_for_keypress
|
|||
if [ -f ${FILE} ]; then
|
||||
LogText "Result: found ${FILE}"
|
||||
if IsWorldWritable ${FILE}; then
|
||||
echo $?
|
||||
echo "File ${FILE} is writable!!!!"
|
||||
ReportWarning "${TEST_NO}" "Found world writable configuration file"
|
||||
fi
|
||||
Report "ntp_config_file[]=${FILE}"
|
||||
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue