mirror of https://github.com/CISOfy/lynis.git
[FIRE-4520] Use discovered pfctl binary and style improvement
This commit is contained in:
parent
042e52c0b9
commit
04f9fae67c
|
@ -265,7 +265,7 @@
|
||||||
if [ -f /etc/pf.conf ]; then
|
if [ -f /etc/pf.conf ]; then
|
||||||
LogText "Result: /etc/pf.conf exists"
|
LogText "Result: /etc/pf.conf exists"
|
||||||
# Check results from pfctl
|
# Check results from pfctl
|
||||||
PFWARNINGS=`pfctl -n -f /etc/pf.conf -vvv 2>&1 | ${GREPBINARY} -i 'warning'`
|
PFWARNINGS=$(${PFCTLBINARY} -n -f /etc/pf.conf -vvv 2>&1 | ${GREPBINARY} -i 'warning')
|
||||||
if [ "${PFWARNINGS}" = "" ]; then
|
if [ "${PFWARNINGS}" = "" ]; then
|
||||||
Display --indent 4 --text "- Checking pf configuration consistency" --result "${STATUS_OK}" --color GREEN
|
Display --indent 4 --text "- Checking pf configuration consistency" --result "${STATUS_OK}" --color GREEN
|
||||||
LogText "Result: no pf filter warnings found"
|
LogText "Result: no pf filter warnings found"
|
||||||
|
|
Loading…
Reference in New Issue