Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-11 Thread Daniel Lezcano
On 08/11/2011 06:30 PM, Bruno Prémont wrote: On Wed, 10 August 2011 Daniel Lezcano daniel.lezc...@free.fr wrote: On 08/10/2011 10:10 PM, Bruno Prémont wrote: Hi Daniel, [I'm adding containers ml as we had a discussion there some time ago for this feature] [ ... ] +if (cmd ==

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-11 Thread Bruno Prémont
On Thu, 11 August 2011 Daniel Lezcano daniel.lezc...@free.fr wrote: On 08/11/2011 06:30 PM, Bruno Prémont wrote: On Wed, 10 August 2011 Daniel Lezcano daniel.lezc...@free.fr wrote: On 08/10/2011 10:10 PM, Bruno Prémont wrote: Hi Daniel, [I'm adding containers ml as we had a discussion

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-11 Thread Daniel Lezcano
On 08/11/2011 07:04 PM, Bruno Prémont wrote: On Thu, 11 August 2011 Daniel Lezcano daniel.lezc...@free.fr wrote: On 08/11/2011 06:30 PM, Bruno Prémont wrote: On Wed, 10 August 2011 Daniel Lezcano daniel.lezc...@free.fr wrote: On 08/10/2011 10:10 PM, Bruno Prémont wrote: Hi Daniel, [I'm

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-11 Thread Serge Hallyn
Quoting Bruno Prémont (bonb...@linux-vserver.org): On Thu, 11 August 2011 Daniel Lezcano daniel.lezc...@free.fr wrote: On 08/11/2011 06:30 PM, Bruno Prémont wrote: On Wed, 10 August 2011 Daniel Lezcano daniel.lezc...@free.fr wrote: On 08/10/2011 10:10 PM, Bruno Prémont wrote: Hi

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-10 Thread Daniel Lezcano
On 08/10/2011 10:10 PM, Bruno Prémont wrote: Hi Daniel, [I'm adding containers ml as we had a discussion there some time ago for this feature] [ ... ] +if (cmd == LINUX_REBOOT_CMD_RESTART2) +if (strncpy_from_user(buffer[0], arg, sizeof(buffer) - 1) 0) +return

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-10 Thread Bruno Prémont
Hi Daniel, [I'm adding containers ml as we had a discussion there some time ago for this feature] One comment below: On Mon, 08 August 2011 Daniel Lezcano daniel.lezc...@free.fr wrote: Hi all, I am trying to solve one of the problems the linux container community is facing : How to