mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-10 07:24:32 +02:00
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
This commit is contained in:
parent
2bf9bc52cc
commit
d25dcd09ef
@ -140,6 +140,7 @@
|
|||||||
LogText " Found known binary: getent (query tool for name service switch libraries) - ${BINARY}"
|
LogText " Found known binary: getent (query tool for name service switch libraries) - ${BINARY}"
|
||||||
;;
|
;;
|
||||||
grep) GREPFOUND=1; GREPBINARY=${BINARY}; LogText " Found known binary: grep (text search) - ${BINARY}" ;;
|
grep) GREPFOUND=1; GREPBINARY=${BINARY}; LogText " Found known binary: grep (text search) - ${BINARY}" ;;
|
||||||
|
gradm) GRADMFOUND=1; GRADMBINARY=${BINARY}; LogText " Found known binary: gradm (Grsecurity Administration Utility) - ${BINARY}" ;;
|
||||||
grub2-install) GRUB2INSTALLFOUND=1; GRUB2INSTALLBINARY=${BINARY}; LogText " Found known binary: grub2-install (installer for boot loader) - ${BINARY}" ;;
|
grub2-install) GRUB2INSTALLFOUND=1; GRUB2INSTALLBINARY=${BINARY}; LogText " Found known binary: grub2-install (installer for boot loader) - ${BINARY}" ;;
|
||||||
gzip) GZIPFOUND=1; GZIPBINARY="${BINARY}"; LogText " Found known binary: gzip (compressing utility) - ${BINARY}" ;;
|
gzip) GZIPFOUND=1; GZIPBINARY="${BINARY}"; LogText " Found known binary: gzip (compressing utility) - ${BINARY}" ;;
|
||||||
head) HEADBINARY="${BINARY}"
|
head) HEADBINARY="${BINARY}"
|
||||||
|
@ -180,6 +180,12 @@
|
|||||||
else
|
else
|
||||||
Display --indent 2 --text "- Checking presence grsecurity" --result "${STATUS_NOT_FOUND}" --color WHITE
|
Display --indent 2 --text "- Checking presence grsecurity" --result "${STATUS_NOT_FOUND}" --color WHITE
|
||||||
fi
|
fi
|
||||||
|
if [ ! -z "${GRADMBINARY}" ]; then
|
||||||
|
FIND=$(${GRADMBINARY} --status)
|
||||||
|
if [ "${FIND}" = "The RBAC system is currently enabled." ]; then
|
||||||
|
MAC_FRAMEWORK_ACTIVE=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user