提交 e33f7a9f 编写于 作者: T Tim Chen 提交者: David S. Miller

scm: Capture the full credentials of the scm sender

This patch corrects an erroneous update of credential's gid with uid
introduced in commit 257b5358 since 2.6.36.
Signed-off-by: NTim Chen <tim.c.chen@linux.intel.com>
Acked-by: NEric Dumazet <eric.dumazet@gmail.com>
Reviewed-by: NJames Morris <jmorris@namei.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f0e3d068
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册