diff options
author | Kees Cook | 2020-07-02 15:20:22 -0700 |
---|---|---|
committer | Kees Cook | 2020-07-08 16:00:22 -0700 |
commit | 60f7bb66b88b649433bf700acfc60c3f24953871 (patch) | |
tree | a8645c78975252d456c17685eb840ee74f504ac4 /tools | |
parent | b25a7c5af9051850d4f3d93ca500056ab6ec724b (diff) |
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: 81365a947de4 ("kprobes: Show address of kprobes if kallsyms does")
Fixes: ffb9bd68ebdb ("kprobes: Show blacklist addresses as same as kallsyms does")
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions