Comments (7)
Thanks for reporting this. A patch have been added to better determine versions. Can you have a look to see if it now detected your running version?
from lynis.
Hi, @mboelen. Thanks for the fix.
I'm in the middle of very busy days to test this right now. I'm going to test this out in the end of the next week if you don't mind. I'll come back here to report the results. You may close the issue if you want to get rid of it.
from lynis.
Hi, in commit there is a error
... sed 's/vmlinuz-//' sed 's/generic.//' ...
without pipe procude a error,
... sed 's/vmlinuz-//' | sed 's/generic.//' ...
it's ok
from lynis.
Thanks, changed and committed new version. Working better now?
from lynis.
this is the result:
Whithout patch
[09:58:52] Performing test ID KRNL-5830 (Checking if system is running on the latest kernel)
[09:58:52] Test: Checking presence /var/run/reboot-required.pkgs
[09:58:52] Result: file /var/run/reboot-required.pkgs not found
[09:58:52] Result: /boot exists, performing more tests from here
[09:58:52] Result: found symlink of /boot/vmlinuz, skipping file
[09:58:52] Result: using 4.0.4 as my kernel version (stripped)
[09:58:52] Result: Found huge
[09:58:52] Result: Found vmlinuz
[09:58:52] Result: Found huge.3.18.11
[09:58:52] Result: Found 3.17.8
[09:58:52] Result: Found 3.19.4
[09:58:52] Result: Found 4.0.3
[09:58:52] Result: Found 4.0.4 (= our kernel)
[09:58:52] Result: we found our kernel on disk as last entry, so seems to be up-to-date
[09:58:52] Hardening: assigned 5 hardening points (max for this item: 5), current: 5, total: 5
With patch
[10:07:42] Performing test ID KRNL-5830 (Checking if system is running on the latest kernel)
[10:07:43] Test: Checking presence /var/run/reboot-required.pkgs
[10:07:43] Result: file /var/run/reboot-required.pkgs not found
[10:07:43] Result: /boot exists, performing more tests from here
[10:07:43] Result: found symlink of /boot/vmlinuz, skipping file
[10:07:43] Result: using 4.0.4 as my kernel version (stripped)
[10:07:43] Result: Found huge
[10:07:43] Result: Found vmlinuz
[10:07:43] Result: Found 3.17.8
[10:07:43] Result: Found 3.18.11
[10:07:43] Result: Found 3.19.4
[10:07:43] Result: Found 4.0.3
[10:07:43] Result: Found 4.0.4 (= our kernel)
[10:07:43] Result: we found our kernel on disk as last entry, so seems to be up-to-date
[10:07:43] Hardening: assigned 5 hardening points (max for this item: 5), current: 5, total: 5
And kernel in my pc are:
lrwxrwxrwx 1 root root 20 apr 22 11:33 vmlinuz -> vmlinuz-huge-3.18.11
-rw-r--r-- 1 root root 3671952 feb 13 15:52 vmlinuz-3.17.8-cf
-rw-r--r-- 1 root root 3751776 apr 14 10:36 vmlinuz-3.19.4-cf
-rw-r--r-- 1 root root 4221616 mag 15 13:25 vmlinuz-4.0.3-cf
-rw-r--r-- 1 root root 4221872 mag 18 14:15 vmlinuz-4.0.4-cf
lrwxrwxrwx 1 root root 20 apr 22 11:33 vmlinuz-huge -> vmlinuz-huge-3.18.11
-rw-r--r-- 1 root root 7144496 apr 7 20:10 vmlinuz-huge-3.18.11
from lynis.
Hi, @mboelen. I'm sorry for the delay to reply. Busy days, got sick...
Testing against 785ac74 commit works for me. The log now says:
[03:59:48] Performing test ID KRNL-5830 (Checking if system is running on the latest kernel)
[03:59:48] Test: Checking presence /var/run/reboot-required.pkgs
[03:59:48] Result: file /var/run/reboot-required.pkgs not found
[03:59:48] Result: /boot exists, performing more tests from here
[03:59:48] Result: found symlink of /boot/vmlinuz, skipping file
[03:59:48] Result: using 3.18.11 as my kernel version (stripped)
[03:59:48] Result: Found generic
[03:59:48] Result: Found huge
[03:59:48] Result: Found vmlinuz
[03:59:48] Result: Found 3.18.11 (= our kernel)
[03:59:48] Result: Found 3.18.11 (= our kernel)
[03:59:48] Result: we found our kernel on disk as last entry, so seems to be up-to-date
[03:59:48] Hardening: assigned 5 hardening points (max for this item: 5), current: 12, total: 12
I think this one is a closed deal. Thanks to you and @conraid for the patch revision.
from lynis.
Thanks for confirmation, closing issue.
from lynis.
Related Issues (20)
- Add Alt Linux to a list of a checkable versions of linux HOT 5
- Unknown OS: OSMC HOT 3
- systemd Plugin tests get stuck on Debian 12 HOT 11
- Cryptography tests get stuck on Debian 12 HOT 2
- Consider to add MFA checking on Lynis HOT 4
- Consider to add checks for some more kernel and memory hardenig HOT 1
- Firewalls [x] but nftables HOT 2
- fail2ban.configreader prints warning to stderr (allowipv6) HOT 8
- Error message on debian 12 HOT 4
- Exception found! [KRNL-5730] _ReportException_ should have _GREPTOOL_ passed in and not _GREPBINARY_ HOT 1
- Unraid /boot Function/test: [KRNL-5830:2] Can not find any vmlinuz or kernel files in
- SSH daemon is running - Exception Found HOT 3
- Unknown OS found - Neon KDE HOT 1
- Lynis on OpenBSD HOT 9
- Download area cannot be listed anymore HOT 7
- [INSE-8000] The inetd service is not detected HOT 2
- [PKGS-7410] Does not detect the package containing the kernel. HOT 2
- PKGS-7392 - Found one or more vulnerable package right after dist-upgrade HOT 10
- NETW-3200 and FILE-6430 do no longer detect blacklisted modules HOT 4
- Function/test: [SSH-7404:01], Exception found!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lynis.