]> git.baikalelectronics.ru Git - kernel.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)
commit0c62d75b6cb219fd554af4912504b2e4313b1798
tree0fc2afdd433f883525195c337150140a692a8170
parenta605490dd81e4c065f49b99f109b4e5483afd9e2
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