]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/autofs4/waitq.c
CRED: Wrap task credential accesses in the autofs4 filesystem
[linux-2.6-omap-h63xx.git] / fs / autofs4 / waitq.c
index 4b67c2a2d77c51fcc93193dbdd6e31dea2defc14..e02cc8ae5eb326a9fcb05f1557a5d8cc64e7c005 100644 (file)
@@ -391,8 +391,8 @@ int autofs4_wait(struct autofs_sb_info *sbi, struct dentry *dentry,
                memcpy(&wq->name, &qstr, sizeof(struct qstr));
                wq->dev = autofs4_get_dev(sbi);
                wq->ino = autofs4_get_ino(sbi);
-               wq->uid = current->uid;
-               wq->gid = current->gid;
+               wq->uid = current_uid();
+               wq->gid = current_gid();
                wq->pid = current->pid;
                wq->tgid = current->tgid;
                wq->status = -EINTR; /* Status return if interrupted */