[PATCH] PMFS: Set initial root inode permissions to drwxr-xr-x

Ross Zwisler ross.zwisler at linux.intel.com
Wed Jun 12 13:44:46 EDT 2013


For what it's worth, these are the default root inode permissions for
ext4 as well.  Previously our root inode permissions were drwxrwxrwt.

Signed-off-by: Ross Zwisler <ross.zwisler at linux.intel.com>
Acked-by: Rob Gittins <rob.gittins at intel.com>
---
 fs/pmfs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/pmfs/super.c b/fs/pmfs/super.c
index 3f5c5fc..7c440c8 100644
--- a/fs/pmfs/super.c
+++ b/fs/pmfs/super.c
@@ -677,7 +677,7 @@ static int pmfs_fill_super(struct super_block *sb, void *data, int silent)
 
 	/* Init with default values */
 	INIT_LIST_HEAD(&sbi->block_inuse_head);
-	sbi->mode = (S_IRWXUGO | S_ISVTX);
+	sbi->mode = (S_IRUGO | S_IXUGO | S_IWUSR);
 	sbi->uid = current_fsuid();
 	sbi->gid = current_fsgid();
 	set_opt(sbi->s_mount_opt, XIP);
-- 
1.8.2.GIT




More information about the Linux-pmfs mailing list