-
Notifications
You must be signed in to change notification settings - Fork 146
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
Let user select configs without absolute path #61
Comments
Hello @dmknght, Thanks for writing! Actually, the config files in The main use case for users is to check their own kernel config. The example from Fedora:
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
What do you think about this? To me I think it's easier to user to just do |
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. |
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 Thanks! |
Well it's not that hard. From what i checked, you just need to get kernel version, and map the path
|
System info:
Parrot OS 5.0, python 3
kconfig-hardened-check version 5.14
I've tried all options in help menu and I didn't find anything similar to my idea
Idea
/usr/lib/python3/dist-packages/kconfig_hardened_check/config_files/
and users don't know where to search configs / modules.Solution:
__init__.py
file intoconfig_files
. By this, folderconfigs
is a module of the whole project.from kconfig-hardnerned-check.<any path> import config_files
. Absolute path of the module will beconfig_files.__path__[0]
walk_dir(config_files.__path__[0])
. By this, you can have an option in argv to list all configs-c
flag, like-c distros/debian.config
, absolute path is merged withconfig_files.__path__[0]
so there's no need to know absolute path.The text was updated successfully, but these errors were encountered: