From b771437cd0666730649619dae29ddefe9497b928 Mon Sep 17 00:00:00 2001 From: pyllyukko Date: Tue, 8 Oct 2019 20:52:55 +0300 Subject: [PATCH] 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 --- include/tests_mac_frameworks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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