[PATCH 1/1][V3] Add reboot_pid_ns to handle the reboot syscall

Daniel Lezcano daniel.lezcano at free.fr
Mon Dec 5 21:16:11 UTC 2011


On 12/05/2011 09:42 PM, Oleg Nesterov wrote:
> On 12/04, Daniel Lezcano wrote:
>> This patch propose to store the reboot value in the 16 upper bits of the
>> exit code from the processes belonging to a pid namespace which has
>> rebooted. When the reboot syscall is called and we are not in the initial
>> pid namespace, we kill the pid namespace.
>>
>> By this way the parent process of the child pid namespace to know if
>> it rebooted or not and take the right decision.
>>
>> Signed-off-by: Daniel Lezcano <daniel.lezcano at free.fr>
>> Acked-by: Serge Hallyn <serge.hallyn at canonical.com>
>> ---
>>  include/linux/pid_namespace.h |    8 +++++++-
>>  kernel/pid_namespace.c        |   33 +++++++++++++++++++++++++++++++++
>>  kernel/sys.c                  |    3 +++
>>  3 files changed, 43 insertions(+), 1 deletions(-)
> Signed-off-by: Oleg Nesterov <oleg at redhat.com>

Looks like our emails crossed by the wire :)
Thanks again Oleg for your comments and your help.

  -- Daniel


More information about the Containers mailing list