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>2018-03-05 13:32:40 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2018-03-05 13:32:40 +0300
commitdabf7d3e8097608cec091e65d91315537a55e666 (patch)
tree1e9c10565b8580c671dd4e6302863428c1904d47
parent24e2ccd10a2d7171a3f015d6e1d8ccd5084fc042 (diff)
parent94e4fb4bd9d14e33bedee9c7120a52d7d93dd957 (diff)
Merge branch 'master' of https://github.com/CISOfy/lynis
-rw-r--r--include/tests_boot_services2
-rw-r--r--include/tests_firewalls2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services
index 8d69da7a..d55d30cb 100644
--- a/include/tests_boot_services
+++ b/include/tests_boot_services
@@ -71,7 +71,7 @@
case ${OS} in
"Linux")
if [ -f /proc/1/cmdline ]; then
- FILENAME=$(${AWKBINARY} '/(^\/|init)/ { print $1 }' /proc/1/cmdline)
+ FILENAME=$(${AWKBINARY} '/(^\/|init)/ { print $1 }' /proc/1/cmdline | tr -d '\0')
LogText "Result: cmdline found = ${FILENAME}"
ISFILE=$(echo ${FILENAME} | ${GREPBINARY} "^/")
if [ ! -z "${ISFILE}" ]; then
diff --git a/include/tests_firewalls b/include/tests_firewalls
index 77e554e1..f7c4374e 100644
--- a/include/tests_firewalls
+++ b/include/tests_firewalls
@@ -115,7 +115,7 @@
TABLES="filter"
for TABLE in ${TABLES}; do
LogText "Test: gathering information from table ${TABLE}"
- FIND="$FIND""\n"$(${IPTABLESBINARY} -t ${TABLE} --numeric --list | ${EGREPBINARY} -z -o -w '[A-Z]+' | ${AWKBINARY} -v t=${TABLE} 'NR%2 {printf "%s %s ",t, $0 ; next;}1')
+ FIND="$FIND""\n"$(${IPTABLESBINARY} -t ${TABLE} --numeric --list | ${EGREPBINARY} -z -o -w '[A-Z]+' | tr -d '\0' | ${AWKBINARY} -v t=${TABLE} 'NR%2 {printf "%s %s ",t, $0 ; next;}1')
done
echo "${FIND}" | while read line; do