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

Add dmesg-/kptr-restrict options #69

Open
0xricksanchez opened this issue Aug 24, 2022 · 0 comments
Open

Add dmesg-/kptr-restrict options #69

0xricksanchez opened this issue Aug 24, 2022 · 0 comments

Comments

@0xricksanchez
Copy link
Owner

0xricksanchez commented Aug 24, 2022

Is your feature request related to a problem? Please describe.

Currently, there is no way to set these options:

# https://sysctl-explorer.net/kernel/dmesg_restrict/
echo 1 > /proc/sys/kernel/dmesg_restrict
https://sysctl-explorer.net/kernel/kptr_restrict/
echo 1 > /proc/sys/kernel/kptr_restrict

For example, fine-grained KASLR aka FG-KASLR can be set during compile options with -e CONFIG_FG_KASLR, which our current config.ini supports already

Note: FG-KASLR seems to be exclusive to x86_64 and can be disabled at runtime with the nokaslr or nofgkaslr

Describe the solution you'd like
I'd like a user exposed config options for these to be set in the debugged kernel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant