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:
authorBlueC0re <bluec0re@users.noreply.github.com>2016-09-06 21:58:30 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-09-06 21:58:30 +0300
commita596bdc3493ad611d330188e662d93efa6484497 (patch)
tree80a9c2ff6e866eff3bf92b3468ce780a5bde572a /include/tests_firewalls
parent8c811778ddb515846cb6d3aa13647b8a93534148 (diff)
added TRBINARY + fix nftables check (#276)
fixes #273
Diffstat (limited to 'include/tests_firewalls')
-rw-r--r--include/tests_firewalls3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tests_firewalls b/include/tests_firewalls
index dcb978ca..b84a97db 100644
--- a/include/tests_firewalls
+++ b/include/tests_firewalls
@@ -388,6 +388,7 @@
if [ ! -z "${FIND}" ]; then
LogText "Result: found nftables kernel module"
FIREWALL_SOFTWARE="nftables"
+ FIREWALL_ACTIVE=1
NFTABLES_ACTIVE=1
Report "firewall_software[]=nftables"
else
@@ -403,7 +404,7 @@
Register --test-no FIRE-4538 --os Linux --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check nftables basic configuration"
if [ ${SKIPTEST} -eq 0 ]; then
# Retrieve nft version
- NFT_VERSION=$(${NFTBINARY} --version 2> /dev/null | ${AWKBINARY} '{ if ($1=="nftables") { print $2 }}' | tr -d 'v')
+ NFT_VERSION=$(${NFTBINARY} --version 2> /dev/null | ${AWKBINARY} '{ if ($1=="nftables") { print $2 }}' | ${TRBINARY} -d 'v')
Report "nft_version=${NFT_VERSION}"
LogText "Result: found version ${NFT_VERSION} of nft"
fi