]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sysctl: add the kernel.ns_last_pid control
authorPavel Emelyanov <xemul@parallels.com>
Fri, 2 Dec 2011 03:13:14 +0000 (14:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 6 Dec 2011 04:05:52 +0000 (15:05 +1100)
commit8abc57673c614ced66f8332d947e464a18de069e
tree865ba1d11f61d7e3c04d6eb9e65f6f12b00d4a01
parente712a5ce9a46d5af0e9579ea6f926094fa246348
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