aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/scm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/scm.h')
-rw-r--r--include/net/scm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/scm.h b/include/net/scm.h
index 06df126103ca..f160116db54a 100644
--- a/include/net/scm.h
+++ b/include/net/scm.h
@@ -54,8 +54,8 @@ static __inline__ int scm_send(struct socket *sock, struct msghdr *msg,
54 struct scm_cookie *scm) 54 struct scm_cookie *scm)
55{ 55{
56 struct task_struct *p = current; 56 struct task_struct *p = current;
57 scm->creds.uid = p->uid; 57 scm->creds.uid = current_uid();
58 scm->creds.gid = p->gid; 58 scm->creds.gid = current_gid();
59 scm->creds.pid = task_tgid_vnr(p); 59 scm->creds.pid = task_tgid_vnr(p);
60 scm->fp = NULL; 60 scm->fp = NULL;
61 scm->seq = 0; 61 scm->seq = 0;