mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 15:54:09 +02:00
Merge pull request #53 from jamesmacwhite/SQD-3264-fix
Fix false positive matches with unsafe ports on SQD-3624
This commit is contained in:
commit
bcfd4261d0
@ -265,7 +265,7 @@
|
|||||||
#SQUID_DAEMON_UNSAFE_PORTS_LIST
|
#SQUID_DAEMON_UNSAFE_PORTS_LIST
|
||||||
for I in ${SQUID_DAEMON_UNSAFE_PORTS_LIST}; do
|
for I in ${SQUID_DAEMON_UNSAFE_PORTS_LIST}; do
|
||||||
logtext "Test: Checking port ${I} in Safe_ports list"
|
logtext "Test: Checking port ${I} in Safe_ports list"
|
||||||
FIND2=`grep "^acl Safe_ports port ${I}" ${SQUID_DAEMON_CONFIG}`
|
FIND2=`grep -w "^acl Safe_ports port ${I}" ${SQUID_DAEMON_CONFIG}`
|
||||||
if [ "${FIND2}" = "" ]; then
|
if [ "${FIND2}" = "" ]; then
|
||||||
Display --indent 6 --text "- Checking ACL 'Safe_ports' (port ${I})" --result "NOT FOUND" --color GREEN
|
Display --indent 6 --text "- Checking ACL 'Safe_ports' (port ${I})" --result "NOT FOUND" --color GREEN
|
||||||
AddHP 1 1
|
AddHP 1 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user