projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0e3d06
)
scm: Capture the full credentials of the scm sender
author
Tim Chen
<
[email protected]
>
Tue, 9 Aug 2011 06:48:32 +0000
(06:48 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 11 Aug 2011 12:52:57 +0000
(
05:52
-0700)
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]
>
net/core/scm.c
patch
|
blob
|
history
diff --git
a/net/core/scm.c
b/net/core/scm.c
index 4c1ef026d6955b8cadaf77ceee6538dd4b4e1800..811b53fb330e8a40e640db483965acfc8c55cc4a 100644
(file)
--- 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.
u
id;
+ cred->gid = cred->egid = p->creds.
g
id;
put_cred(p->cred);
p->cred = cred;
}