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

Please support /proc/config.gz #47

Closed
morfikov opened this issue Oct 13, 2020 · 3 comments
Closed

Please support /proc/config.gz #47

morfikov opened this issue Oct 13, 2020 · 3 comments

Comments

@morfikov
Copy link

Currently only uncompressed config-* files in /boot/ are supported, but the current kernel config can also be accessed via /proc/config.gz . There's no way to use this file. Please support this path as well.

@a13xp0p0v
Copy link
Owner

a13xp0p0v commented Oct 14, 2020

No problem, I would recommend this:

  # zcat /proc/config.gz > my.config
  # ./bin/kconfig-hardened-check -c my.config

@morfikov
Copy link
Author

Yes, I know, but this is the same as just using -c /boot/config-* . I thought of using /proc/config.gz because in such case a user would just use one file no matter what kernel version he's using. When you decompress the file first, it's an extra step which could be eliminated to simplify the whole process and make it easier.

@a13xp0p0v
Copy link
Owner

Not all kernels provide the kernel config via /proc/config.gz.
For example, RHEL, Fedora, Ubuntu, Debian don't do that.

I think we can use zcat separately, if we need.

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

2 participants