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

Commit e33f7a9f authored by Tim Chen's avatar Tim Chen Committed by David S. Miller
Browse files

scm: Capture the full credentials of the scm sender



This patch corrects an erroneous update of credential's gid with uid
introduced in commit 257b5358 since 2.6.36.

Signed-off-by: default avatarTim Chen <tim.c.chen@linux.intel.com>
Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Reviewed-by: default avatarJames Morris <jmorris@namei.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f0e3d068
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *p)
					goto error;

				cred->uid = cred->euid = p->creds.uid;
				cred->gid = cred->egid = p->creds.uid;
				cred->gid = cred->egid = p->creds.gid;
				put_cred(p->cred);
				p->cred = cred;
			}