proc: Fix the namespace inode permission checks.
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 19 Jun 2011 00:48:18 +0000 (17:48 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 20 Nov 2012 12:19:48 +0000 (04:19 -0800)
commitbf056bfa80596a5d14b26b17276a56a0dcb080e5
tree116db3255e1b75a92b30b72afe416aa941109e9f
parent33d6dce607573b5fd7a43168e0d91221b3ca532b
proc: Fix the namespace inode permission checks.

Change the proc namespace files into symlinks so that
we won't cache the dentries for the namespace files
which can bypass the ptrace_may_access checks.

To support the symlinks create an additional namespace
inode with it's own set of operations distinct from the
proc pid inode and dentry methods as those no longer
make sense.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/proc/inode.c
fs/proc/namespaces.c