Netdev List
 help / color / mirror / Atom feed
* [Patch] Correct assignment of uid to gid in credentials
@ 2011-08-08 22:08 Tim Chen
  2011-08-09  2:43 ` Eric Dumazet
  0 siblings, 1 reply; 7+ messages in thread
From: Tim Chen @ 2011-08-08 22:08 UTC (permalink / raw)
  To: Eric W. Biederman, Eric Dumazet, David S. Miller, Al Viro
  Cc: ak, Al Viro, linux-kernel, netdev

This patch corrects an erroneous assignment of uid to gid in credentials
update.

Tim

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
diff --git a/net/core/scm.c b/net/core/scm.c
index 4c1ef02..811b53f 100644
--- a/net/core/scm.c
+++ b/net/core/scm.c
@@ -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;
 			}

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-08-11 12:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-08 22:08 [Patch] Correct assignment of uid to gid in credentials Tim Chen
2011-08-09  2:43 ` Eric Dumazet
2011-08-09 16:48   ` [Patch] scm: Capture the full credentials of the scm sender Tim Chen
2011-08-09 18:06     ` Andi Kleen
2011-08-09 18:12       ` Eric Dumazet
2011-08-09 23:20     ` James Morris
2011-08-11 12:51     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox