summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-30 09:42:11 -0700
committerStephen Hemminger <shemminger@osdl.org>2003-09-30 09:42:11 -0700
commitf944f959ebbb608870b9a189cdd044df2c6a90ea (patch)
tree94189acbea236d06e89a2fbe96ac165dcf6a83f1 /include
parent579d5c49327d1d2714335d4799bf0df35cdd6ad9 (diff)
[NET]: Use task->tgid instead of task->pid in SCM credentials code.
Diffstat (limited to 'include')
-rw-r--r--include/net/scm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/scm.h b/include/net/scm.h
index e41839d23dfa..732f80337ea0 100644
--- a/include/net/scm.h
+++ b/include/net/scm.h
@@ -39,7 +39,7 @@ static __inline__ int scm_send(struct socket *sock, struct msghdr *msg,
memset(scm, 0, sizeof(*scm));
scm->creds.uid = current->uid;
scm->creds.gid = current->gid;
- scm->creds.pid = current->pid;
+ scm->creds.pid = current->tgid;
if (msg->msg_controllen <= 0)
return 0;
return __scm_send(sock, msg, scm);