Skip to content
Commit 8fa00a6f authored by Kees Cook's avatar Kees Cook Committed by Paul Gortmaker
Browse files

kprobes: Do not expose probe addresses to non-CAP_SYSLOG

commit 60f7bb66 upstream.

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>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 5ddf57cb
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