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

ERORR? #73

Closed
alpahca opened this issue Sep 24, 2022 · 3 comments
Closed

ERORR? #73

alpahca opened this issue Sep 24, 2022 · 3 comments

Comments

@alpahca
Copy link

alpahca commented Sep 24, 2022

i was try to some book(Billimoria, Kaiwan N. Linux Kernel Debugging: Leverage proven tools and advanced techniques to effectively debug Linux kernels and kernel modules (p. 61). Packt Publishing. Kindle Edition. ).

but.

$ bin/kconfig-hardened-check -p X86_64 -c ~/lkd_kernels/kconfig.prod01/.config
[!] ERROR: --config and --print can't be used together

what should i do?

@a13xp0p0v
Copy link
Owner

Hi @alpahca,

Quoting kconfig-hardened-check --help:

  -p {X86_64,X86_32,ARM64,ARM}, --print {X86_64,X86_32,ARM64,ARM}
                        print security hardening preferences for the selected architecture
  -c CONFIG, --config CONFIG
                        check the kernel kconfig file against these preferences

So for checking your kernel config simply do this:

$ bin/kconfig-hardened-check -c ~/lkd_kernels/kconfig.prod01/.config

@alpahca
Copy link
Author

alpahca commented Oct 11, 2022 via email

@a13xp0p0v
Copy link
Owner

Hi @alpahca,

Please try to use -c with the path to the kconfig file, not a directory.

Best regards,
Alexander

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