-
Notifications
You must be signed in to change notification settings - Fork 91
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
Detect if the Linux Kernel is in lockdown mode #620
Conversation
I am not sure we should completely not load the instrumentation in case the kernel is in lockdown mode. What do you think about producing spans and adding an error to them that specify something like |
Sure, I think I can do that. The only way I've been able to do this kind of thing is by using defines, compiling different versions of the BPF programs and loading selectively. I know about the |
@edeNFed what do you think about doing that in a follow up PR? |
I'm happy to work on extending this PR and following with another that does the partial trace support. It will be easier for review if we are doing it incrementally, but I don't mind to extend this one if that's preferred. |
This PR adds a Linux Kernel lockdown mode validation check for the two bpf programs which use bpf_probe_write_user. If the kernel is running in lockdown mode (typically auto-enabled with Secure Boot), we now put an explanatory error message instead of 'failed to load bpf program error'.
Relates to #290