Skip to content
Commit 60f7bb66 authored by Kees Cook's avatar Kees Cook
Browse files

kprobes: Do not expose probe addresses to non-CAP_SYSLOG

The kprobe show() functions were using "current"'s creds instead
of the file opener's creds for kallsyms visibility. Fix to use
seq_file->file->f_cred.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: stable@vger.kernel.org
Fixes: 81365a94 ("kprobes: Show address of kprobes if kallsyms does")
Fixes: ffb9bd68

 ("kprobes: Show blacklist addresses as same as kallsyms does")
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent b25a7c5a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment