diff options
author | pyllyukko <pyllyukko@maimed.org> | 2017-01-16 14:02:03 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2017-01-16 14:02:03 +0300 |
commit | d25dcd09efe52e270be8fe80771cfdc46ef5493d (patch) | |
tree | 327ca9b892aff15f602127d0c440007e246c2ab2 /include/tests_mac_frameworks | |
parent | 2bf9bc52ccd7f60086d065aae9e9c0cecff4a53f (diff) |
Set MAC_FRAMEWORK_ACTIVE=1 if grsecurity's RBAC is enabled (#348)
* Look for gradm utility
* Set MAC_FRAMEWORK_ACTIVE=1 if grsec's RBAC is enabled
Diffstat (limited to 'include/tests_mac_frameworks')
-rw-r--r-- | include/tests_mac_frameworks | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tests_mac_frameworks b/include/tests_mac_frameworks index e758f8d2..d1bfeeb6 100644 --- a/include/tests_mac_frameworks +++ b/include/tests_mac_frameworks @@ -180,6 +180,12 @@ else Display --indent 2 --text "- Checking presence grsecurity" --result "${STATUS_NOT_FOUND}" --color WHITE fi + if [ ! -z "${GRADMBINARY}" ]; then + FIND=$(${GRADMBINARY} --status) + if [ "${FIND}" = "The RBAC system is currently enabled." ]; then + MAC_FRAMEWORK_ACTIVE=1 + fi + fi fi # ################################################################################# |