]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sysctl: add the kernel.ns_last_pid control
authorPavel Emelyanov <xemul@parallels.com>
Fri, 16 Dec 2011 04:50:46 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 Dec 2011 07:19:56 +0000 (18:19 +1100)
commitf05e5f17f81803803b64d2914be262e063b87d9f
treea2ddb83e113af55a7d1dfcf15eebb2f6dc03c5ca
parentc9ba223981e45fedf82146569a22c8c4253a1125
sysctl: add the kernel.ns_last_pid control

The sysctl works on the current task's pid namespace, getting and setting
its last_pid field.

Writing is allowed for CAP_SYS_ADMIN-capable tasks thus making it possible
to create a task with desired pid value.  This ability is required badly
for the checkpoint/restore in userspace.

This approach suits all the parties for now.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/sysctl/kernel.txt
kernel/pid.c
kernel/pid_namespace.c