Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1601854 > unrolled thread

[PATCH 14/15] mm: page_alloc: Use octal permissions

Started byJoe Perches <joe@perches.com>
First post2017-03-16 03:10 +0100
Last post2017-03-16 03:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 14/15] mm: page_alloc: Use octal permissions Joe Perches <joe@perches.com> - 2017-03-16 03:10 +0100

#1601854 — [PATCH 14/15] mm: page_alloc: Use octal permissions

FromJoe Perches <joe@perches.com>
Date2017-03-16 03:10 +0100
Subject[PATCH 14/15] mm: page_alloc: Use octal permissions
Message-ID<tlt1v-8aE-13@gated-at.bofh.it>
Using S_<FOO> permissions can be hard to parse.
Using octal is typical.

Signed-off-by: Joe Perches <joe@perches.com>
---
 mm/page_alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index efc3184aa6bc..930773b03b26 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2863,7 +2863,7 @@ static bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
 
 static int __init fail_page_alloc_debugfs(void)
 {
-	umode_t mode = S_IFREG | S_IRUSR | S_IWUSR;
+	umode_t mode = S_IFREG | 0600;
 	struct dentry *dir;
 
 	dir = fault_create_debugfs_attr("fail_page_alloc", NULL,
-- 
2.10.0.rc2.1.g053435c

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web