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:
authorYann ILAS <yann.ilas@gmail.com>2016-05-19 18:34:35 +0300
committerMichael Boelen <michael@cisofy.com>2016-05-19 18:34:35 +0300
commite8d6308d825c3488726acfbc0bbf4da3dd069621 (patch)
tree6f6a3b7b4ffeaf2db0a6bc0026492913c82712dc /include/tests_firewalls
parent770605e4c656f0b0543ba5dd5503fb5a074e08ce (diff)
use ${LSMODBINARY} instead of lsmod (#200)
Diffstat (limited to 'include/tests_firewalls')
-rw-r--r--include/tests_firewalls4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_firewalls b/include/tests_firewalls
index a64be661..b1153934 100644
--- a/include/tests_firewalls
+++ b/include/tests_firewalls
@@ -40,7 +40,7 @@
# Description : Check iptables kernel module
Register --test-no FIRE-4502 --os Linux --weight L --network NO --description "Check iptables kernel module"
if [ ${SKIPTEST} -eq 0 ]; then
- FIND=`lsmod | awk '{ print $1 }' | grep "^ip*_tables"`
+ FIND=`${LSMODBINARY} | awk '{ print $1 }' | grep "^ip*_tables"`
if [ ! "${FIND}" = "" ]; then
FIREWALL_ACTIVE=1
FIREWALL_SOFTWARE="iptables"
@@ -385,7 +385,7 @@
if [ ! "${NFTBINARY}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
Register --test-no FIRE-4536 --os Linux --preqs-met ${PREQS_MET} --weight L --network NO --description "Check nftables status"
if [ ${SKIPTEST} -eq 0 ]; then
- FIND=`lsmod | awk '{ print $1 }' | grep "^nf*_tables"`
+ FIND=`${LSMODBINARY} | awk '{ print $1 }' | grep "^nf*_tables"`
if [ ! "${FIND}" = "" ]; then
FIREWALL_SOFTWARE="nftables"
NFTABLES_ACTIVE=1