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.

Change-Id: Id7d7e0155ef5961778ad339b34f859bc39f4a5aa
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Git-commit: 98c3155c5e3639ca968f948112cb4a50edc86341
Git-repo: https://android.googlesource.com/kernel/common/
CRs-Fixed: 901628
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2 files changed