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>2017-01-16 14:02:03 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-01-16 14:02:03 +0300
commitd25dcd09efe52e270be8fe80771cfdc46ef5493d (patch)
tree327ca9b892aff15f602127d0c440007e246c2ab2 /include/tests_mac_frameworks
parent2bf9bc52ccd7f60086d065aae9e9c0cecff4a53f (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_frameworks6
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
#
#################################################################################