[<prev] [next>] [day] [month] [year] [list]
Message-ID: <145424652170.10770.5085971283841936983.stgit@zurg>
Date: Sun, 31 Jan 2016 16:22:01 +0300
From: Konstantin Khlebnikov <koct9i@...il.com>
To: linux-fsdevel@...r.kernel.org, linux-unionfs@...r.kernel.org,
Miklos Szeredi <miklos@...redi.hu>
Cc: linux-kernel@...r.kernel.org,
Alexander Viro <viro@...iv.linux.org.uk>
Subject: [PATCH] ovl: copy MS_POSIXACL flag from upper layer
Catched by xfstests generic/319
Signed-off-by: Konstantin Khlebnikov <koct9i@...il.com>
---
fs/overlayfs/super.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index ba28b007005e..e6ae59c7119c 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -972,6 +972,10 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent)
goto out_put_workpath;
}
sb->s_stack_depth = upperpath.mnt->mnt_sb->s_stack_depth;
+
+ /* Copy MS_POSIXACL flag from upper layer */
+ sb->s_flags &= ~MS_POSIXACL;
+ sb->s_flags |= upperpath.mnt->mnt_sb->s_flags & MS_POSIXACL;
}
err = -ENOMEM;
lowertmp = kstrdup(ufs->config.lowerdir, GFP_KERNEL);
Powered by blists - more mailing lists