mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 23:34:25 +02:00
Prevent false positive between inetd and xinetd
This commit is contained in:
parent
de7878d6d6
commit
f5f0f02777
@ -33,8 +33,8 @@
|
|||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
# Check running processes
|
# Check running processes
|
||||||
logtext "Test: Searching for active inet daemon..."
|
logtext "Test: Searching for active inet daemon..."
|
||||||
FIND=`${PSBINARY} ax | grep "inetd" | grep -v "grep"`
|
IsRunning inetd
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ${RUNNING} -eq 1 ]; then
|
||||||
logtext "Result: inetd is running"
|
logtext "Result: inetd is running"
|
||||||
Display --indent 2 --text "- Checking inetd status..." --result ACTIVE --color GREEN
|
Display --indent 2 --text "- Checking inetd status..." --result ACTIVE --color GREEN
|
||||||
#YYY perform manual check
|
#YYY perform manual check
|
||||||
@ -70,7 +70,7 @@
|
|||||||
# Test : INSE-8006
|
# Test : INSE-8006
|
||||||
# Description : Check for inetd configuration file contents if inetd is NOT active
|
# Description : Check for inetd configuration file contents if inetd is NOT active
|
||||||
if [ ${INETD_ACTIVE} -eq 0 -a -f ${INETD_CONFIG_FILE} ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
if [ ${INETD_ACTIVE} -eq 0 -a -f ${INETD_CONFIG_FILE} ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||||
Register --test-no INSE-8006 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check for disabled inet daemon"
|
Register --test-no INSE-8006 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check configuration of inetd when disabled"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
# Check if any service is enabled in /etc/inetd.conf (inetd is not active, see test 8002)
|
# Check if any service is enabled in /etc/inetd.conf (inetd is not active, see test 8002)
|
||||||
logtext "Test: check if all services are disabled if inetd is disabled"
|
logtext "Test: check if all services are disabled if inetd is disabled"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user