mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-29 08:44:21 +02:00
/usr/sbin/httpd on OpenBSD is builtin non-Apache webserver, do not run with -v
If Apache is installed it is detected in /usr/local/sbin/httpd nevertheless
This commit is contained in:
parent
e1a87794bc
commit
f7ec431a65
@ -50,9 +50,13 @@
|
|||||||
# Test : HTTP-6622
|
# Test : HTTP-6622
|
||||||
# Description : Test for Apache installation
|
# Description : Test for Apache installation
|
||||||
# Notes : Do not run on NetBSD, -v is unknown option for httpd binary
|
# Notes : Do not run on NetBSD, -v is unknown option for httpd binary
|
||||||
|
# On OpenBSD do not run /usr/sbin/httpd with -v: builtin non-Apache
|
||||||
if [ ! "${OS}" = "NetBSD" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
if [ ! "${OS}" = "NetBSD" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||||
Register --test-no HTTP-6622 --preqs-met ${PREQS_MET} --weight L --network NO --description "Checking Apache presence"
|
Register --test-no HTTP-6622 --preqs-met ${PREQS_MET} --weight L --network NO --description "Checking Apache presence"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
|
if [ "${OS}" = "OpenBSD" -a "${HTTPDBINARY}" = "/usr/sbin/httpd" ]; then
|
||||||
|
HTTPDBINARY=""
|
||||||
|
fi
|
||||||
if [ "${HTTPDBINARY}" = "" ]; then
|
if [ "${HTTPDBINARY}" = "" ]; then
|
||||||
Display --indent 2 --text "- Checking Apache" --result "NOT FOUND" --color WHITE
|
Display --indent 2 --text "- Checking Apache" --result "NOT FOUND" --color WHITE
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user