summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorTim Chen <tim.c.chen@linux.intel.com>2011-08-09 06:48:32 +0000
committerDavid S. Miller <davem@davemloft.net>2011-08-11 05:52:57 -0700
commite33f7a9f37d486f4c6cce5de18a6eea11d68f64f (patch)
treed6d6db5bda85953b1cb5c11160aecd3586687e88 /net/core
parentf0e3d0689da401f7d1981c2777a714ba295ea5ff (diff)
downloadop-kernel-dev-e33f7a9f37d486f4c6cce5de18a6eea11d68f64f.zip
op-kernel-dev-e33f7a9f37d486f4c6cce5de18a6eea11d68f64f.tar.gz
scm: Capture the full credentials of the scm sender
This patch corrects an erroneous update of credential's gid with uid introduced in commit 257b5358b32f17 since 2.6.36. Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Reviewed-by: James Morris <jmorris@namei.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/scm.c2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud