mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 01:36:52 +09:00
scm: Capture the full credentials of the scm sender
[ Upstream commite33f7a9f37] This patch corrects an erroneous update of credential's gid with uid introduced in commit257b5358b3since 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5c97f6d487
commit
265d5c2eb2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user