GithubHelp home page GithubHelp logo

Comments (5)

a13xp0p0v avatar a13xp0p0v commented on June 22, 2024

Hello @dmknght,

Thanks for writing!

Actually, the config files in kconfig_hardened_check/config_files/ are provided as examples that are used for developing and testing of this tool. These configs are updated not that often, they don't cover all major distros.

The main use case for users is to check their own kernel config. The example from Fedora:

./bin/kconfig-hardened-check -c /boot/config-5.16.11-100.fc34.x86_64

So I don't think users care about the location of these example config files. How do you think?

from kernel-hardening-checker.

dmknght avatar dmknght commented on June 22, 2024

Hello @dmknght,

Thanks for writing!

Actually, the config files in kconfig_hardened_check/config_files/ are provided as examples that are used for developing and testing of this tool. These configs are updated not that often, they don't cover all major distros.

The main use case for users is to check their own kernel config. The example from Fedora:

./bin/kconfig-hardened-check -c /boot/config-5.16.11-100.fc34.x86_64

So I don't think users care about the location of these example config files. How do you think?

Hello! Sorry for very late reply. I had issue with my mail notification LuL. Anyway, I think that's a very interesting point that i didn't know. In this case, I think kconfig-hardened-check can have a flag like auto check to do the command automatically. The workflow is like:

  1. Check if there is config file that matches kernel version at /boot/
  2. If exists, run the system check automatically
  3. If doesn't exists, tells user to try some examples. In this case, i think absolute path of examples is needed.

What do you think about this? To me I think it's easier to user to just do run and read the result without thinking about wrong profiles.

from kernel-hardening-checker.

Bernhard40 avatar Bernhard40 commented on June 22, 2024

Some distros don't expose kernel config at /boot and I don't see why average user would be interested in checking example config which is probably totally unrelated to their system.

from kernel-hardening-checker.

a13xp0p0v avatar a13xp0p0v commented on June 22, 2024

I agree with @Bernhard40.

@dmknght, I would avoid adding the code for searching the kernel config on a local machine.

Moreover, Linux kernel developers often use the kconfig-hardened-check tool for the configs of the kernels that they develop (not the config of the local machine).

Thanks!

from kernel-hardening-checker.

dmknght avatar dmknght commented on June 22, 2024

@dmknght, I would avoid adding the code for searching the kernel config on a local machine.

Well it's not that hard. From what i checked, you just need to get kernel version, and map the path /boot/config-<kernel version>

Moreover, Linux kernel developers often use the kconfig-hardened-check tool for the configs of the kernels that they develop (not the config of the local machine).
Well i see. So i guess I can close the issue now because the scope is different.

from kernel-hardening-checker.

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.