lkml.org 
[lkml]   [2017]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 3/4] x86/mm/debug_pagetables: Use octal file permissions
As equested by several reviewers.

Fixes: ca646ac417b8 ("x86/mm/debug_pagetables: Allow dumping current pagetables")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
arch/x86/mm/debug_pagetables.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

--- a/arch/x86/mm/debug_pagetables.c
+++ b/arch/x86/mm/debug_pagetables.c
@@ -81,18 +81,18 @@ static void pt_dump_debug_remove_files(v

static int __init pt_dump_debug_init(void)
{
- pe_knl = debugfs_create_file("kernel_page_tables", S_IRUSR, NULL, NULL,
+ pe_knl = debugfs_create_file("kernel_page_tables", 0400, NULL, NULL,
&ptdump_fops);
if (!pe_knl)
return -ENOMEM;

- pe_curknl = debugfs_create_file("current_page_tables_knl", S_IRUSR,
+ pe_curknl = debugfs_create_file("current_page_tables_knl", 0400,
NULL, NULL, &ptdump_curknl_fops);
if (!pe_curknl)
goto err;

#ifdef CONFIG_KAISER
- pe_curusr = debugfs_create_file("current_page_tables_usr", S_IRUSR,
+ pe_curusr = debugfs_create_file("current_page_tables_usr", 0400,
NULL, NULL, &ptdump_curusr_fops);
if (!pe_curusr)
goto err;

\
 
 \ /
  Last update: 2017-11-27 22:18    [W:0.079 / U:1.408 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site