kexec_load: Disable at runtime if the kernel is locked down
The kexec_load() syscall permits the loading and execution of arbitrary code in ring 0, which is something that lock-down is meant to prevent. It makes sense to disable kexec_load() in this situation. This does not affect kexec_file_load() syscall which can check for a signature on the image to be booted. Signed-off-by: NDavid Howells <dhowells@redhat.com> Signed-off-by: NMatthew Garrett <mjg59@google.com> Acked-by: NDave Young <dyoung@redhat.com> Reviewed-by: NKees Cook <keescook@chromium.org> cc: kexec@lists.infradead.org Signed-off-by: NJames Morris <jmorris@namei.org>
Showing
想要评论请 注册 或 登录