diff options
Diffstat (limited to 'include/tests_insecure_services')
-rw-r--r-- | include/tests_insecure_services | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_insecure_services b/include/tests_insecure_services index 5812cfae..a506825e 100644 --- a/include/tests_insecure_services +++ b/include/tests_insecure_services @@ -75,7 +75,7 @@ if [ ${SKIPTEST} -eq 0 ]; then # 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" - FIND=`grep -v "^#" ${INETD_CONFIG_FILE} | grep -v "^$"` + FIND=`${GREPBINARY} -v "^#" ${INETD_CONFIG_FILE} | ${GREPBINARY} -v "^$"` if [ "${FIND}" = "" ]; then Display --indent 4 --text "- Checking inetd.conf services" --result "${STATUS_OK}" --color GREEN else @@ -92,7 +92,7 @@ Register --test-no INSE-8016 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check for telnet via inetd" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: checking telnet presence in inetd configuration" - FIND=`grep "^telnet" ${INETD_CONFIG_FILE}` + FIND=`${GREPBINARY} "^telnet" ${INETD_CONFIG_FILE}` if [ "${FIND}" = "" ]; then LogText "Result: telnet not enabled in ${INETD_CONFIG_FILE}" Display --indent 2 --text "- Checking inetd (telnet)" --result "${STATUS_NOT_FOUND}" --color GREEN |