diff options
author | pyllyukko <pyllyukko@maimed.org> | 2019-10-08 20:52:55 +0300 |
---|---|---|
committer | pyllyukko <pyllyukko@maimed.org> | 2019-10-08 20:52:55 +0300 |
commit | b771437cd0666730649619dae29ddefe9497b928 (patch) | |
tree | 829729ac50382f44c835017ff9af3f8857adeeb4 /include/tests_mac_frameworks | |
parent | 52e1231433eca258d868c6989cf02f26f3870146 (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_frameworks | 2 |
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 |