mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
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
This commit is contained in:
parent
52e1231433
commit
b771437cd0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue