Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive in reboot detection with kernel symlink #1241

Open
Vogtinator opened this issue Nov 30, 2021 · 0 comments
Open

False positive in reboot detection with kernel symlink #1241

Vogtinator opened this issue Nov 30, 2021 · 0 comments

Comments

@Vogtinator
Copy link

Describe the bug
Tumbleweed recently moved the kernel from /boot to /usr, and thus vmlinuz-* is a symlink to the kernel's modules directory. This triggers a false positive in Lynis.

Version

  • Distribution [e.g. Ubuntu 18.04]: openSUSE Tumbleweed
  • Lynis version [e.g. 2.7.0]: 3.0.6

Expected behavior
Lynis should not show that a reboot is needed.

Output

2021-11-30 00:58:46 Performing test ID KRNL-5830 (Checking if system is running on the latest installed kernel)
2021-11-30 00:58:46 Test: Checking presence /var/run/reboot-required.pkgs
2021-11-30 00:58:46 Result: file /var/run/reboot-required.pkgs not found
2021-11-30 00:58:46 Result: /boot exists, performing more tests from here
2021-11-30 00:58:46 Result: found /boot/vmlinuz-5.15.5-1-default
2021-11-30 00:58:46 Result: found a symlink, retrieving destination
2021-11-30 00:58:46 Result: destination file is ../usr/lib/modules/5.15.5-1-default/vmlinuz
2021-11-30 00:58:46 Result: version derived from file name is '../usr/lib/modules/5.15.5-1-default/vmlinuz'
2021-11-30 00:58:46 Result: found version ../usr/lib/modules/5.15.5-1-default/vmlinuz
2021-11-30 00:58:46 Result: active kernel version 5.15.5-1-default
2021-11-30 00:58:46 Result: reboot needed, as there is a difference between active kernel and the one on disk
Vogtinator added a commit to Vogtinator/os-autoinst-distri-opensuse that referenced this issue Nov 30, 2021
New issues:
* Audit missing rules: boo#1191614#c2, fix is submitted
* False positive in reboot detection:
  CISOfy/lynis#1241
* Insecure grub.cfg permissions: boo#1189644
Vogtinator added a commit to os-autoinst/os-autoinst-distri-opensuse that referenced this issue Dec 1, 2021
New issues:
* Audit missing rules: boo#1191614#c2, fix is submitted
* False positive in reboot detection:
  CISOfy/lynis#1241
* Insecure grub.cfg permissions: boo#1189644
lansuse pushed a commit to lansuse/os-autoinst-distri-opensuse that referenced this issue Dec 2, 2021
New issues:
* Audit missing rules: boo#1191614#c2, fix is submitted
* False positive in reboot detection:
  CISOfy/lynis#1241
* Insecure grub.cfg permissions: boo#1189644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant