]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sysctl: add the kernel.ns_last_pid control
authorPavel Emelyanov <xemul@parallels.com>
Thu, 8 Dec 2011 04:42:55 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Dec 2011 04:19:21 +0000 (15:19 +1100)
commitb85b9feb5c700ff068d11e37ce60c2f6006649ef
tree3f70c1df70842aa172f89a043da227fc612f1db7
parent77b7f5732eb1a5e9b95382260e1a0a0967a2cc08
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