Commit f2a3ab36 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Ingo Molnar
Browse files

kprobes: Make list and blacklist root user read only

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 <>

Signed-off-by: default avatarIngo Molnar <>
parent 9e3ed2d7
......@@ -2509,7 +2509,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;
......@@ -2519,7 +2519,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