Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed06e069 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

ovl: root: copy attr



We copy i_uid and i_gid of underlying inode into overlayfs inode.  Except
for the root inode.

Fix this omission.

Signed-off-by: default avatarMiklos Szeredi <miklos@szeredi.hu>
Cc: <stable@vger.kernel.org>
parent 257f8719
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1079,6 +1079,9 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent)

	root_dentry->d_fsdata = oe;

	ovl_copyattr(ovl_dentry_real(root_dentry)->d_inode,
		     root_dentry->d_inode);

	sb->s_magic = OVERLAYFS_SUPER_MAGIC;
	sb->s_op = &ovl_super_operations;
	sb->s_root = root_dentry;