X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fnet%2Fscm.h;h=f45bb6eca7d4263e179a203872c56c87f765ebe5;hb=c2f43981e5dbc92884149aa2234064cc2c340acd;hp=33e9986beb86dd95d6f3f962ca8a89281c874a9d;hpb=be542fa56b1b5b269a70b4df219d0cbd871f16d2;p=mv-sheeva.git diff --git a/include/net/scm.h b/include/net/scm.h index 33e9986beb8..f45bb6eca7d 100644 --- a/include/net/scm.h +++ b/include/net/scm.h @@ -55,8 +55,8 @@ static __inline__ int scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) { struct task_struct *p = current; - scm->creds.uid = p->uid; - scm->creds.gid = p->gid; + scm->creds.uid = current_uid(); + scm->creds.gid = current_gid(); scm->creds.pid = task_tgid_vnr(p); scm->fp = NULL; scm->seq = 0;