Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane

From: Konstantin Khlebnikov <koct9i <at> gmail.com>
Subject: [PATCH] ovl: copy MS_POSIXACL flag from upper layer
Newsgroups: gmane.linux.file-systems.union
Date: Sunday 31st January 2016 13:22:01 UTC (over 2 years ago)
Catched by xfstests generic/319

Signed-off-by: Konstantin Khlebnikov 
---
 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);
 
CD: 34ms