mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Merge pull request #920 from jsrc27/Fix-KRNL-5730
Fix KRNL-5730 to properly check /proc/config.gz
This commit is contained in:
commit
8a5b2a4099
1 changed files with 3 additions and 2 deletions
|
|
@ -235,12 +235,13 @@
|
|||
Register --test-no KRNL-5728 --os Linux --weight L --network NO --category security --description "Checking Linux kernel config"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
CHECKFILE="${ROOTDIR}boot/config-$(uname -r)"
|
||||
CHECKFILE_ZIPPED="${ROOTDIR}proc/config.gz"
|
||||
if [ -f ${CHECKFILE} ]; then
|
||||
LINUXCONFIGFILE="${CHECKFILE}"
|
||||
LogText "Result: found config (${LINUXCONFIGFILE})"
|
||||
Display --indent 2 --text "- Checking Linux kernel configuration file" --result "${STATUS_FOUND}" --color GREEN
|
||||
elif [ -f ${ROOTDIR}proc/config.gz ]; then
|
||||
LINUXCONFIGFILE="${CHECKFILE}"
|
||||
elif [ -f ${CHECKFILE_ZIPPED} ]; then
|
||||
LINUXCONFIGFILE="${CHECKFILE_ZIPPED}"
|
||||
LINUXCONFIGFILE_ZIPPED=1
|
||||
LogText "Result: found config: ${ROOTDIR}proc/config.gz (compressed)"
|
||||
Display --indent 2 --text "- Checking Linux kernel configuration file" --result "${STATUS_FOUND}" --color GREEN
|
||||
|
|
|
|||
Loading…
Reference in a new issue