fs/coredump: prevent fsuid=0 dumps into user-controlled directories
[pandora-kernel.git] / kernel / sysctl_binary.c
index 9f9aa32..cd2ea02 100644 (file)
@@ -1346,7 +1346,7 @@ static ssize_t binary_sysctl(const int *name, int nlen,
        }
 
        mnt = current->nsproxy->pid_ns->proc_mnt;
        }
 
        mnt = current->nsproxy->pid_ns->proc_mnt;
-       file = file_open_root(mnt->mnt_root, mnt, pathname, flags);
+       file = file_open_root(mnt->mnt_root, mnt, pathname, flags, 0);
        result = PTR_ERR(file);
        if (IS_ERR(file))
                goto out_putname;
        result = PTR_ERR(file);
        if (IS_ERR(file))
                goto out_putname;