linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>,
	Andy Lutomirski <luto@kernel.org>, Ingo Molnar <mingo@kernel.org>,
	Borislav Petkov <bp@alien8.de>, Brian Gerst <brgerst@gmail.com>,
	Denys Vlasenko <dvlasenk@redhat.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Josh Poimboeuf <jpoimboe@redhat.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Rik van Riel <riel@redhat.com>,
	daniel.gruss@iaik.tugraz.at, hughd@google.com,
	keescook@google.com, linux-mm@kvack.org,
	michael.schwarz@iaik.tugraz.at, moritz.lipp@iaik.tugraz.at,
	richard.fellner@student.tugraz.at,
	Juergen Gross <jgross@suse.com>,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>
Subject: [patch 3/4] x86/mm/debug_pagetables: Use octal file permissions
Date: Mon, 27 Nov 2017 21:34:19 +0100	[thread overview]
Message-ID: <20171127204257.654262031@linutronix.de> (raw)
In-Reply-To: 20171127203416.236563829@linutronix.de

[-- Attachment #1: x86-mm-debug_pagetables--Use-octal-file-permissions.patch --]
[-- Type: text/plain, Size: 1326 bytes --]

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;


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2017-11-27 20:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-27 20:34 [patch 0/4] x86/kaiser: Paravirt support and various fixlets Thomas Gleixner
2017-11-27 20:34 ` [patch 1/4] x86/paravirt: Dont patch flush_tlb_single Thomas Gleixner
2017-11-27 21:01   ` Peter Zijlstra
2017-11-27 21:13   ` Josh Poimboeuf
2017-11-27 20:34 ` [patch 2/4] x86/kaiser: Enable PARAVIRT again Thomas Gleixner
2017-11-28  6:47   ` Juergen Gross
2017-11-27 20:34 ` Thomas Gleixner [this message]
2017-11-27 21:01   ` [patch 3/4] x86/mm/debug_pagetables: Use octal file permissions Peter Zijlstra
2017-11-27 20:34 ` [patch 4/4] x86/mm/dump_pagetables: Use helper to get the shadow PGD Thomas Gleixner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171127204257.654262031@linutronix.de \
    --to=tglx@linutronix.de \
    --cc=boris.ostrovsky@oracle.com \
    --cc=bp@alien8.de \
    --cc=brgerst@gmail.com \
    --cc=daniel.gruss@iaik.tugraz.at \
    --cc=dave.hansen@linux.intel.com \
    --cc=dvlasenk@redhat.com \
    --cc=hpa@zytor.com \
    --cc=hughd@google.com \
    --cc=jgross@suse.com \
    --cc=jpoimboe@redhat.com \
    --cc=keescook@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=luto@kernel.org \
    --cc=michael.schwarz@iaik.tugraz.at \
    --cc=mingo@kernel.org \
    --cc=moritz.lipp@iaik.tugraz.at \
    --cc=peterz@infradead.org \
    --cc=richard.fellner@student.tugraz.at \
    --cc=riel@redhat.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).