get rid of cred argument of vfs_open() and do_dentry_open()
[muen/linux.git] / fs / namei.c
index 223925e30adb55469ecf2e2f9eed1c0aeac580c6..3cf02804d5ffd61220b9b2004b32384d881e7eba 100644 (file)
@@ -3396,7 +3396,7 @@ finish_open_created:
        if (error)
                goto out;
        BUG_ON(*opened & FILE_OPENED); /* once it's opened, it's opened */
-       error = vfs_open(&nd->path, file, current_cred());
+       error = vfs_open(&nd->path, file);
        if (error)
                goto out;
        *opened |= FILE_OPENED;
@@ -3499,7 +3499,7 @@ static int do_o_path(struct nameidata *nd, unsigned flags, struct file *file)
        int error = path_lookupat(nd, flags, &path);
        if (!error) {
                audit_inode(nd->name, path.dentry, 0);
-               error = vfs_open(&path, file, current_cred());
+               error = vfs_open(&path, file);
                path_put(&path);
        }
        return error;