GithubHelp home page GithubHelp logo

Comments (7)

mboelen avatar mboelen commented on July 24, 2024

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.

denydias avatar denydias commented on July 24, 2024

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.

conraid avatar conraid commented on July 24, 2024

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.

mboelen avatar mboelen commented on July 24, 2024

Thanks, changed and committed new version. Working better now?

from lynis.

conraid avatar conraid commented on July 24, 2024

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.

denydias avatar denydias commented on July 24, 2024

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.

mboelen avatar mboelen commented on July 24, 2024

Thanks for confirmation, closing issue.

from lynis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.