CRED: Wrap task credential accesses in the networking subsystem
[linux-2.6-block.git] / include / net / scm.h
index 06df126103cab8224d6cf7ae64c7f00e75f06e12..f160116db54a94c5cf671fd51c46222287d7c635 100644 (file)
@@ -54,8 +54,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;