ovl: root: copy attr
commit ed06e069775ad9236087594a1c1667367e983fb5 upstream. We copy i_uid and i_gid of underlying inode into overlayfs inode. Except for the root inode. Fix this omission. Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
367e439dbc
commit
7193e80296
1 changed files with 3 additions and 0 deletions
|
@ -1053,6 +1053,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;
|
||||
|
|
Loading…
Add table
Reference in a new issue