diff options
| author | Tim Chen <[email protected]> | 2011-08-09 06:48:32 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2011-08-11 12:52:57 +0000 |
| commit | e33f7a9f37d486f4c6cce5de18a6eea11d68f64f (patch) | |
| tree | d6d6db5bda85953b1cb5c11160aecd3586687e88 /net/core/scm.c | |
| parent | tcp: initialize variable ecn_ok in syncookies path (diff) | |
| download | kernel-e33f7a9f37d486f4c6cce5de18a6eea11d68f64f.tar.gz kernel-e33f7a9f37d486f4c6cce5de18a6eea11d68f64f.zip | |
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 <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Reviewed-by: James Morris <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/core/scm.c')
| -rw-r--r-- | net/core/scm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/scm.c b/net/core/scm.c index 4c1ef026d695..811b53fb330e 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; } |
