]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/um/drivers/mconsole_kern.c
CRED: Pass credentials through dentry_open()
[linux-2.6-omap-h63xx.git] / arch / um / drivers / mconsole_kern.c
index 19d579d74d27f18ae67bb1b5c9adcf93f963a288..16d3b3789a50ad6dc37c758d78922e1d11fe147e 100644 (file)
@@ -159,7 +159,8 @@ void mconsole_proc(struct mc_request *req)
                goto out_kill;
        }
 
-       file = dentry_open(nd.path.dentry, nd.path.mnt, O_RDONLY);
+       file = dentry_open(nd.path.dentry, nd.path.mnt, O_RDONLY,
+                          current_cred());
        if (IS_ERR(file)) {
                mconsole_reply(req, "Failed to open file", 1, 0);
                goto out_kill;