Skip to contentSkip to conversation

nilfs2: use octal for unreadable permission macro

PATCH New [email protected] 1 participant 1 message Nov 17, 2017 NILFS2 filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 60/94 nilfs2: use octal for unreadable permission macro

From: Ryusuke Konishi <[email protected]>
Subject: nilfs2: use octal for unreadable permission macro

Replace S_IRWXUGO with 0777 because symbolic permissions are considered harmful:

https://lwn.net/Articles/696229/

---

 fs/nilfs2/namei.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nilfs2/namei.c renamed from fs/nilfs2/namei.c~nilfs2-use-octal-for-unreadable-permission-macro +1 -1
diff -puN fs/nilfs2/namei.c~nilfs2-use-octal-for-unreadable-permission-macro fs/nilfs2/namei.c
@@ -150,7 +150,7 @@ static int nilfs_symlink(struct inode *d
 	if (err)
 		return err;
 
-	inode = nilfs_new_inode(dir, S_IFLNK | S_IRWXUGO);
+	inode = nilfs_new_inode(dir, S_IFLNK | 0777);
 	err = PTR_ERR(inode);
 	if (IS_ERR(inode))
 		goto out;

_