X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fnet%2Fscm.h;h=33e9986beb86dd95d6f3f962ca8a89281c874a9d;hb=3b53fbf4314594fa04544b02b2fc6e607912da18;hp=423cb1d5ac2530dcd4a742f286b7d416be6b8f6e;hpb=d9ff963801e4f7648c55a27413a1b1de59480a30;p=linux-2.6-omap-h63xx.git diff --git a/include/net/scm.h b/include/net/scm.h index 423cb1d5ac2..33e9986beb8 100644 --- a/include/net/scm.h +++ b/include/net/scm.h @@ -4,6 +4,8 @@ #include #include #include +#include +#include /* Well, we should have at least one descriptor open * to accept passed FDs 8) @@ -12,8 +14,9 @@ struct scm_fp_list { - int count; - struct file *fp[SCM_MAX_FD]; + struct list_head list; + int count; + struct file *fp[SCM_MAX_FD]; }; struct scm_cookie @@ -54,7 +57,7 @@ static __inline__ int scm_send(struct socket *sock, struct msghdr *msg, struct task_struct *p = current; scm->creds.uid = p->uid; scm->creds.gid = p->gid; - scm->creds.pid = p->tgid; + scm->creds.pid = task_tgid_vnr(p); scm->fp = NULL; scm->seq = 0; unix_get_peersec_dgram(sock, scm);