Return-Path: Received: from mail-sn1nam02on0112.outbound.protection.outlook.com ([104.47.36.112]:31168 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932368AbeARVFn (ORCPT ); Thu, 18 Jan 2018 16:05:43 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: Marc Dionne , David Howells , Sasha Levin Subject: [added to the 4.1 stable tree] afs: Populate group ID from vnode status Date: Thu, 18 Jan 2018 21:01:31 +0000 Message-ID: <20180118205908.3220-239-alexander.levin@microsoft.com> References: <20180118205908.3220-1-alexander.levin@microsoft.com> In-Reply-To: <20180118205908.3220-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: Marc Dionne This patch has been added to the stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ Upstream commit 6186f0788b31f44affceeedc7b48eb10faea120d ] The group was hard coded to GLOBAL_ROOT_GID; use the group ID that was received from the server. Signed-off-by: Marc Dionne Signed-off-by: David Howells Signed-off-by: Sasha Levin --- fs/afs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/afs/inode.c b/fs/afs/inode.c index e06f5a23352a..9580456e8902 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c @@ -69,7 +69,7 @@ static int afs_inode_map_status(struct afs_vnode *vnode, = struct key *key) =20 set_nlink(inode, vnode->status.nlink); inode->i_uid =3D vnode->status.owner; - inode->i_gid =3D GLOBAL_ROOT_GID; + inode->i_gid =3D vnode->status.group; inode->i_size =3D vnode->status.size; inode->i_ctime.tv_sec =3D vnode->status.mtime_server; inode->i_ctime.tv_nsec =3D 0; --=20 2.11.0