mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-21 12:54:33 +02:00
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…
x
Reference in New Issue
Block a user