X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fproc%2Fnamespaces.c;h=50de28b0a6709ead6fce36e67a601158bda23a4d;hb=1c8d42255f4c55f9550f72bbcda758aeff3fd7c2;hp=be177f702acbc9bc352c0e13f5b37aeedbf6dd25;hpb=c0c463d34adf0c150e5e24fa412fa23f3f7ddc27;p=pandora-kernel.git diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c index be177f702acb..50de28b0a670 100644 --- a/fs/proc/namespaces.c +++ b/fs/proc/namespaces.c @@ -54,7 +54,7 @@ static struct dentry *proc_ns_instantiate(struct inode *dir, ei->ns_ops = ns_ops; ei->ns = ns; - dentry->d_op = &pid_dentry_operations; + d_set_d_op(dentry, &pid_dentry_operations); d_add(dentry, inode); /* Close the race of the process dying before we return the dentry */ if (pid_revalidate(dentry, NULL)) @@ -91,7 +91,7 @@ static int proc_ns_dir_readdir(struct file *filp, void *dirent, goto out_no_task; ret = -EPERM; - if (!ptrace_may_access(task, PTRACE_MODE_READ)) + if (!ptrace_may_access(task, PTRACE_MODE_READ_FSCREDS)) goto out; ret = 0; @@ -154,7 +154,7 @@ static struct dentry *proc_ns_dir_lookup(struct inode *dir, goto out_no_task; error = ERR_PTR(-EPERM); - if (!ptrace_may_access(task, PTRACE_MODE_READ)) + if (!ptrace_may_access(task, PTRACE_MODE_READ_FSCREDS)) goto out; last = &ns_entries[ARRAY_SIZE(ns_entries) - 1];