proc: seqfile convert proc_pid_status to properly handle pid namespaces
Currently we possibly lookup the pid in the wrong pid namespace. So seq_file convert proc_pid_status which ensures the proper pid namespaces is passed in. [akpm@linux-foundation.org: coding-style fixes] [akpm@linux-foundation.org: build fix] [akpm@linux-foundation.org: another build fix] [akpm@linux-foundation.org: s390 build fix] [akpm@linux-foundation.org: fix task_name() output] [akpm@linux-foundation.org: fix nommu build] Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Cc: Andrew Morgan <morgan@kernel.org> Cc: Serge Hallyn <serue@us.ibm.com> Cc: Cedric Le Goater <clg@fr.ibm.com> Cc: Pavel Emelyanov <xemul@openvz.org> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Paul Menage <menage@google.com> Cc: Paul Jackson <pj@sgi.com> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
a56d3fc74c
commit
df5f8314ca
@@ -2274,7 +2274,7 @@ static const struct pid_entry tgid_base_stuff[] = {
|
||||
DIR("fdinfo", S_IRUSR|S_IXUSR, fdinfo),
|
||||
REG("environ", S_IRUSR, environ),
|
||||
INF("auxv", S_IRUSR, pid_auxv),
|
||||
INF("status", S_IRUGO, pid_status),
|
||||
ONE("status", S_IRUGO, pid_status),
|
||||
INF("limits", S_IRUSR, pid_limits),
|
||||
#ifdef CONFIG_SCHED_DEBUG
|
||||
REG("sched", S_IRUGO|S_IWUSR, pid_sched),
|
||||
@@ -2605,7 +2605,7 @@ static const struct pid_entry tid_base_stuff[] = {
|
||||
DIR("fdinfo", S_IRUSR|S_IXUSR, fdinfo),
|
||||
REG("environ", S_IRUSR, environ),
|
||||
INF("auxv", S_IRUSR, pid_auxv),
|
||||
INF("status", S_IRUGO, pid_status),
|
||||
ONE("status", S_IRUGO, pid_status),
|
||||
INF("limits", S_IRUSR, pid_limits),
|
||||
#ifdef CONFIG_SCHED_DEBUG
|
||||
REG("sched", S_IRUGO|S_IWUSR, pid_sched),
|
||||
|
Reference in New Issue
Block a user