]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Handle pid namespaces in cgroups code
authorPavel Emelyanov <xemul@openvz.org>
Thu, 7 Feb 2008 08:14:47 +0000 (00:14 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 16:42:22 +0000 (08:42 -0800)
commit73507f335f406ff31ceb97b39fa76eaee00f4f26
tree0fc2afdd433f883525195c337150140a692a8170
parentb450129554213a4d4c5932f8a293646c029e1b0a
Handle pid namespaces in cgroups code

There's one place that works with task pids - its the "tasks" file in cgroups.
 The read/write handlers assume, that the pid values go to/come from the user
space and thus it is a virtual pid, i.e.  the pid as it is seen from inside a
namespace.

Tune the code accordingly.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.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>
kernel/cgroup.c