mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-25 23:05:01 +02:00
[INSE-8116] added rsync service
This commit is contained in:
parent
96434508d4
commit
3f04235353
@ -213,7 +213,7 @@
|
|||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
XINETD_INSECURE_SERVICE_FOUND=0
|
XINETD_INSECURE_SERVICE_FOUND=0
|
||||||
|
|
||||||
ITEMS="chargen chargen-dgram chargen-stream daytime daytime-dgram daytime-stream discard discard-dgram discard-stream echo echo-dgram echo-stream time time-dgram time-stream ntalk rexec rlogin rsh talk telnet tftp"
|
ITEMS="chargen chargen-dgram chargen-stream daytime daytime-dgram daytime-stream discard discard-dgram discard-stream echo echo-dgram echo-stream time time-dgram time-stream ntalk rexec rlogin rsh rsync talk telnet tftp"
|
||||||
|
|
||||||
for SERVICE in ${ITEMS}; do
|
for SERVICE in ${ITEMS}; do
|
||||||
LogText "Test: checking service ${SERVICE}"
|
LogText "Test: checking service ${SERVICE}"
|
||||||
@ -246,26 +246,6 @@
|
|||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
|
||||||
# Test : INSE-8150
|
|
||||||
# Description : Check for rsync enabled via xinetd
|
|
||||||
#RSYNC_XINETD_CONFIG_FILE="${XINETD_CONFIG_DIR}/rsync"
|
|
||||||
#if [ ${XINETD_ACTIVE} -eq 1 -a -f ${RSYNC_XINETD_CONFIG_FILE} ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
|
||||||
#Register --test-no INSE-8150 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check for rsync via xinetd"
|
|
||||||
#if [ ${SKIPTEST} -eq 0 ]; then
|
|
||||||
# LogText "Test: checking rsync presence in xinetd configuration"
|
|
||||||
# FIND=$(${GREPBINARY} "disable\s*=\s*no" ${RSYNC_XINETD_CONFIG_FILE})
|
|
||||||
# if [ "${FIND}" = "" ]; then
|
|
||||||
# LogText "Result: rsync not enabled in ${RSYNC_XINETD_CONFIG_FILE}"
|
|
||||||
# Display --indent 6 --text "- Checking xinetd (rsync)" --result "${STATUS_DISABLED}" --color GREEN
|
|
||||||
# else
|
|
||||||
# LogText "Result: rsync enabled in ${RSYNC_XINETD_CONFIG_FILE}"
|
|
||||||
# Display --indent 6 --text "- Checking xinetd (rsync)" --result "${STATUS_ENABLED}" --color RED
|
|
||||||
# ReportSuggestion "${TEST_NO}" "Disable rsync in xinetd configuration"
|
|
||||||
# fi
|
|
||||||
#fi
|
|
||||||
#
|
|
||||||
#################################################################################
|
|
||||||
#
|
#
|
||||||
# Test : INSE-8200
|
# Test : INSE-8200
|
||||||
# Description : Check if tcp_wrappers is installed when inetd/xinetd is active
|
# Description : Check if tcp_wrappers is installed when inetd/xinetd is active
|
||||||
|
Loading…
x
Reference in New Issue
Block a user