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>2016-09-05 12:22:39 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-09-05 12:22:39 +0300
commit04f9fae67cb7913d821f16daa792c92fae1ea35a (patch)
tree65bce6527986bf2fae91547c6385a5841133dd3c /include/tests_firewalls
parent042e52c0b9fc5e2cc8c6d6b12d570f5dda35308a (diff)
[FIRE-4520] Use discovered pfctl binary and style improvement
Diffstat (limited to 'include/tests_firewalls')
-rw-r--r--include/tests_firewalls2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_firewalls b/include/tests_firewalls
index 157166b0..7eff6cdc 100644
--- a/include/tests_firewalls
+++ b/include/tests_firewalls
@@ -265,7 +265,7 @@
if [ -f /etc/pf.conf ]; then
LogText "Result: /etc/pf.conf exists"
# 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
Display --indent 4 --text "- Checking pf configuration consistency" --result "${STATUS_OK}" --color GREEN
LogText "Result: no pf filter warnings found"