fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmap
[linux-block.git] / fs / fuse / acl.c
index cbb066b22da2ba1d15775122ba1f006fcf93c7f2..23d1c263891f5e4edbd179d177845d644b62bc5f 100644 (file)
@@ -99,7 +99,7 @@ int fuse_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
                        return ret;
                }
 
-               if (!vfsgid_in_group_p(i_gid_into_vfsgid(&init_user_ns, inode)) &&
+               if (!vfsgid_in_group_p(i_gid_into_vfsgid(&nop_mnt_idmap, inode)) &&
                    !capable_wrt_inode_uidgid(&nop_mnt_idmap, inode, CAP_FSETID))
                        extra_flags |= FUSE_SETXATTR_ACL_KILL_SGID;