[PATCH] ovl: copy MS_POSIXACL flag from upper layer
From: Konstantin Khlebnikov
Date: Sun Jan 31 2016 - 08:22:13 EST
Catched by xfstests generic/319
Signed-off-by: Konstantin Khlebnikov <koct9i@xxxxxxxxx>
---
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);