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:
authorpyllyukko <pyllyukko@maimed.org>2019-10-08 20:52:55 +0300
committerpyllyukko <pyllyukko@maimed.org>2019-10-08 20:52:55 +0300
commitb771437cd0666730649619dae29ddefe9497b928 (patch)
tree829729ac50382f44c835017ff9af3f8857adeeb4 /include/tests_mac_frameworks
parent52e1231433eca258d868c6989cf02f26f3870146 (diff)
Redirect gradm stderr to /dev/null
If the tool exists but the kernel doesn't have grsec, you'll get the following error into stderr: Could not open /dev/grsec. open: No such file or directory
Diffstat (limited to 'include/tests_mac_frameworks')
-rw-r--r--include/tests_mac_frameworks2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_mac_frameworks b/include/tests_mac_frameworks
index 14b34e4a..15d675a3 100644
--- a/include/tests_mac_frameworks
+++ b/include/tests_mac_frameworks
@@ -222,7 +222,7 @@
Display --indent 2 --text "- Checking presence grsecurity" --result "${STATUS_NOT_FOUND}" --color WHITE
fi
if HasData "${GRADMBINARY}"; then
- FIND=$(${GRADMBINARY} --status)
+ FIND=$(${GRADMBINARY} --status 2>/dev/null)
if [ "${FIND}" = "The RBAC system is currently enabled." ]; then
MAC_FRAMEWORK_ACTIVE=1
fi