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:
authorKristian Schuster <kristian.s@outlook.de>2019-10-20 20:55:34 +0300
committerKristian Schuster <kristian.s@outlook.de>2019-10-20 20:55:34 +0300
commitace2e27237b1866b456b9e6aea859778d2bbb601 (patch)
treeffa5a04b3ab281909afd8c59da9e9a27e14462f7 /include/tests_ports_packages
parentc16133b25545078e166ba05c10b2f53cfd88bbd4 (diff)
KRNL-5840: add detection for proxmox and raspi kernel
Diffstat (limited to 'include/tests_ports_packages')
-rw-r--r--include/tests_ports_packages3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index eef56596..94116e6e 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -1248,7 +1248,8 @@
LogText "Test: Checking how many kernel packages are installed"
if [ -n "${DPKGBINARY}" ]; then
- KERNELS=$(${DPKGBINARY} -l 2> /dev/null | ${GREPBINARY} "linux-image-[0-9]" | ${WCBINARY} -l)
+ KERNEL_PKG_NAMES="linux-image-[0-9]|raspberrypi-kernel|pve-kernel-[0-9]"
+ KERNELS=$(${DPKGBINARY} -l 2> /dev/null | ${EGREPBINARY} "${KERNEL_PKG_NAMES}" | ${WCBINARY} -l)
if [ ${KERNELS} -eq 0 ]; then
LogText "Result: found no kernels from dpkg -l output, which is unexpected"
ReportException "KRNL-5840:2" "Could not find any kernel packages from DPKG output"