mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Merge 3331bff914 into 52ed89ce35
This commit is contained in:
commit
cf72b9653e
1 changed files with 6 additions and 2 deletions
|
|
@ -65,6 +65,7 @@
|
|||
# runit - Used by Artix, Devuan, Dragora and Void
|
||||
# systemd - Common option with more Linux distros implementing it
|
||||
# upstart - Used by Debian/Ubuntu
|
||||
# procd - Used by OpenWrt
|
||||
Register --test-no BOOT-5104 --weight L --network NO --category security --description "Determine service manager"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
BOOT_LOADER_SEARCHED=1
|
||||
|
|
@ -111,9 +112,12 @@
|
|||
runit)
|
||||
SERVICE_MANAGER="runit"
|
||||
;;
|
||||
openrc-init)
|
||||
openrc-init)
|
||||
SERVICE_MANAGER="openrc"
|
||||
;;
|
||||
procd)
|
||||
SERVICE_MANAGER="procd"
|
||||
;;
|
||||
*)
|
||||
CONTAINS_SYSTEMD=$(echo ${SHORTNAME} | ${GREPBINARY} "systemd")
|
||||
if [ -n "${CONTAINS_SYSTEMD}" ]; then
|
||||
|
|
@ -280,7 +284,7 @@
|
|||
BOOT_LOADER_SEARCHED=1
|
||||
CURRENT_BOOT_LOADER=$(${BOOTCTLBINARY} status --no-pager 2>/dev/null | ${AWKBINARY} '/Current Boot Loader/{ getline; print $2 }')
|
||||
if [ "${CURRENT_BOOT_LOADER}" = "systemd-boot" ]; then
|
||||
Display --indent 2 --text "- Checking systemd-boot presence" --result "${STATUS_FOUND}" --color GREEN
|
||||
Display --indent 2 --text "- Checking systemd-boot presence" --result "${STATUS_FOUND}" --color GREEN
|
||||
LogText "Result: found systemd-boot"
|
||||
BOOT_LOADER="systemd-boot"
|
||||
BOOT_LOADER_FOUND=1
|
||||
|
|
|
|||
Loading…
Reference in a new issue