Commit 4bdf9c17 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Greg Kroah-Hartman

kprobes: Make list and blacklist root user read only

commit f2a3ab36 upstream.

Since the blacklist and list files on debugfs indicates
a sensitive address information to reader, it should be
restricted to the root user.
Suggested-by: default avatarThomas Richter <>
Suggested-by: default avatarIngo Molnar <>
Signed-off-by: default avatarMasami Hiramatsu <>
Cc: Ananth N Mavinakayanahalli <>
Cc: Anil S Keshavamurthy <>
Cc: Arnd Bergmann <>
Cc: David Howells <>
Cc: David S . Miller <>
Cc: Heiko Carstens <>
Cc: Jon Medhurst <>
Cc: Linus Torvalds <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
Cc: Tobin C . Harding <>
Cc: Will Deacon <>
Link: default avatarIngo Molnar <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 6ba27d3e
......@@ -2531,7 +2531,7 @@ static int __init debugfs_kprobe_init(void)
if (!dir)
return -ENOMEM;
file = debugfs_create_file("list", 0444, dir, NULL,
file = debugfs_create_file("list", 0400, dir, NULL,
if (!file)
goto error;
......@@ -2541,7 +2541,7 @@ static int __init debugfs_kprobe_init(void)
if (!file)
goto error;
file = debugfs_create_file("blacklist", 0444, dir, NULL,
file = debugfs_create_file("blacklist", 0400, dir, NULL,
if (!file)
goto error;
Markdown is supported
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