Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2020-04-02 14:15:03 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-04-02 14:15:03 +0300
commit4fe1cb92a56f6e008d9bd040f4a0f2c1116fb333 (patch)
treecc822aa503918bea2b07dd142c33ff81b18882c0
parent1996b7e0c664bfc331c5de880c843da775525396 (diff)
[PRNT-2308] check also SSLListen statements
-rw-r--r--include/tests_printers_spools3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tests_printers_spools b/include/tests_printers_spools
index 161c9fb3..18c48beb 100644
--- a/include/tests_printers_spools
+++ b/include/tests_printers_spools
@@ -134,13 +134,14 @@
#
# Test : PRNT-2308
# Description : Check CUPS daemon network configuration
+ # Notes : Listen and SSLListen can be used
if [ ${CUPSD_FOUND} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
Register --test-no PRNT-2308 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check CUPSd network configuration"
if [ ${SKIPTEST} -eq 0 ]; then
FOUND=0
# Checking network addresses
LogText "Test: Checking CUPS daemon listening network addresses"
- FIND=$(${GREPBINARY} "^Listen" ${CUPSD_CONFIG_FILE} | ${GREPBINARY} -v "/" | ${AWKBINARY} '{ print $2 }')
+ FIND=$(${EGREPBINARY} "^(SSL)?Listen" ${CUPSD_CONFIG_FILE} | ${GREPBINARY} -v "/" | ${AWKBINARY} '{ print $2 }')
COUNT=0
for ITEM in ${FIND}; do
LogText "Found network address: ${ITEM}"