diff options
author | Gowrishankar M <gowrishankar.m@in.ibm.com> | 2009-01-08 03:07:43 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-08 17:31:03 +0100 |
commit | e7b80bb695a5b64c92e314838e083b2f3bdf29b2 (patch) | |
tree | f5eafb9825a23550dbf903e5cabd71655e4e55ce /security | |
parent | cgroups: introduce link_css_set() to remove duplicate code (diff) | |
download | linux-e7b80bb695a5b64c92e314838e083b2f3bdf29b2.tar.xz linux-e7b80bb695a5b64c92e314838e083b2f3bdf29b2.zip |
cgroups: skip processes from other namespaces when listing a cgroup
Once tasks are populated from system namespace inside cgroup, container
replaces other namespace task with 0 while listing tasks, inside
container.
Though this is expected behaviour from container end, there is no use of
showing unwanted 0s.
In this patch, we check if a process is in same namespace before loading
into pid array.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Gowrishankar M <gowrishankar.m@in.ibm.com>
Acked-by: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions