Open ferorge opened 2 months ago
What is the package name of the kernel that you see when running dpkg -l
?
Then it can be added in include/tests_ports_packages on line 1345
KERNEL_PKG_NAMES="linux-image-[0-9]|raspberrypi-kernel|pve-kernel-[0-9]"
Would be great if you can test it, as this is very specific. If it works, a pull request would be very welcome (to give you the credit for reporting and testing).
Hi @mboelen
The solution you indicate is correct.
Line 1340 of the file /usr/share/lynis/include/tests_ports_packages looked like this:
KERNEL_PKG_NAMES="linux-image-[0-9]|raspberrypi-kernel|pve-kernel-[0-9]|linux-odroid-5422"
Output from lynis.log:
2024-07-23 06:02:15 Performing test ID PKGS-7410 (Count installed kernel packages) 2024-07-23 06:02:15 Test: Checking how many kernel packages are installed 2024-07-23 06:02:15 Result: found 1 kernel packages on the system, which is fine 2024-07-23 06:02:15 ====
The /boot/zImage file is the kernel. I attach the output of the command:
dpkg -L linux-odroid-5422
/. /boot /boot/exynos5422-odroidhc1.dtb /boot/exynos5422-odroidxu3-lite.dtb /boot/exynos5422-odroidxu3.dtb /boot/exynos5422-odroidxu4.dtb /boot/exynos5422-samsung-k3g.dtb /boot/overlays /boot/overlays/ads7846.dtbo /boot/overlays/hktft-cs-ogst.dtbo /boot/overlays/hktft32.dtbo /boot/overlays/hktft35.dtbo /boot/overlays/i2c0.dtbo /boot/overlays/i2c1.dtbo /boot/overlays/onewire.dtbo /boot/overlays/spi0.dtbo /boot/overlays/sx865x-i2c1.dtbo /boot/overlays/uart0.dtbo /boot/zImage /lib desviado por base-files a: /lib.usr-is-merged ...
The output still lists all modules in /lib/modules/6.6.13-9/kernel and the source in /usr/src/linux-6.6.13-9/
Is your feature request related to a problem? Please describe. When lynis runs the test [PKGS-7410] it does not detect the package containing the kernel. hardware: odroid xu4 hardkernel OS: ubuntu 24.04 armhf lynis:3.1.2
Describe the solution you'd like I would like lynis to detect the package so that it doesn't find an exception.
Thank you so much! Greetings!