Commit 968a9a4a authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Greg Kroah-Hartman
Browse files

kprobes: Make list and blacklist root user read only

commit f2a3ab36


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 <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 2f56c8af
......@@ -2617,7 +2617,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;
......@@ -2627,7 +2627,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