mirror of https://github.com/CISOfy/lynis.git
[CUPS-2308] removed exception handler, improved logging
This commit is contained in:
parent
72aed70677
commit
90e240cfb5
include
|
@ -146,12 +146,11 @@
|
||||||
N=$((N + 1))
|
N=$((N + 1))
|
||||||
FOUND=1
|
FOUND=1
|
||||||
done
|
done
|
||||||
if [ ${FOUND} -eq 0 ]; then
|
|
||||||
ReportException "${TEST_NO}:1" "No listen statement found in CUPS configuration file"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check if daemon is only running on localhost
|
# Check if daemon is only running on localhost
|
||||||
if [ ${N} -eq 1 ]; then
|
if [ ${FOUND} -eq 0 ]; then
|
||||||
|
LogText "Result: no listen statement found in CUPS configuration file"
|
||||||
|
elif [ ${N} -eq 1 ]; then
|
||||||
if [ "${FIND}" = "localhost:631" -o "${FIND}" = "127.0.0.1:631" ]; then
|
if [ "${FIND}" = "localhost:631" -o "${FIND}" = "127.0.0.1:631" ]; then
|
||||||
LogText "Result: CUPS daemon only running on localhost"
|
LogText "Result: CUPS daemon only running on localhost"
|
||||||
AddHP 2 2
|
AddHP 2 2
|
||||||
|
|
Loading…
Reference in New Issue