From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: Re: [PATCH 1/1][V3] Add reboot_pid_ns to handle the reboot syscall Date: Mon, 05 Dec 2011 22:16:11 +0100 Message-ID: <4EDD349B.2030806@free.fr> References: <1323030290-22216-1-git-send-email-daniel.lezcano@free.fr> <1323030290-22216-2-git-send-email-daniel.lezcano@free.fr> <20111205204238.GA7422@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20111205204238.GA7422-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oleg Nesterov Cc: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: containers.vger.kernel.org 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 >> Acked-by: Serge Hallyn >> --- >> 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 Looks like our emails crossed by the wire :) Thanks again Oleg for your comments and your help. -- Daniel