[lxc-devel] [GIT] lxc branch, master, updated. 305bc646f5a579fb258a66dd34f4d9488d0d08fe

2010-04-08 Thread Daniel Lezcano
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "lxc". The branch, master has been updated via 305bc646f5a579fb258a66dd34f4d9488d0d08fe (commit) via 2b30b861579107f638d0c5b6

[lxc-devel] detecting reboot/halt...

2010-04-08 Thread Michael Tokarev
I come across a series of patches to implement reboot/halt of a container. Patches were discussed before, but I had no time to look at that stuff in more detail... The problem. The current detection is based on the content of container's /var/run/utmp. This is goood provided the container actua

Re: [lxc-devel] detecting reboot/halt...

2010-04-08 Thread Michael Tokarev
08.04.2010 11:56, Michael Tokarev wrote: [] > The problem. The current detection is based on the > content of container's /var/run/utmp. This is goood > provided the container actually touches that file, > but this is not true for "single-application" > containers, i.e. the ones without full init.d

[lxc-devel] [PATCH] Unshare user namespace as well

2010-04-08 Thread Mikhail Gusarov
Unshare user namespace to make sure setrlimit and other per-user limits are accounted properly in containers Signed-off-by: Mikhail Gusarov --- src/lxc/start.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index 3b5023c..f1ae2fa 10064

Re: [lxc-devel] detecting reboot/halt...

2010-04-08 Thread Daniel Lezcano
Michael Tokarev wrote: > I come across a series of patches to implement > reboot/halt of a container. Patches were discussed > before, but I had no time to look at that stuff in > more detail... > The problem. The current detection is based on the > content of container's /var/run/utmp. This i

Re: [lxc-devel] detecting reboot/halt...

2010-04-08 Thread Daniel Lezcano
Michael Tokarev wrote: > 08.04.2010 11:56, Michael Tokarev wrote: > [] >> The problem. The current detection is based on the >> content of container's /var/run/utmp. This is goood >> provided the container actually touches that file, >> but this is not true for "single-application" >> containers, i

Re: [lxc-devel] detecting reboot/halt...

2010-04-08 Thread Mikhail Gusarov
Twas brillig at 10:38:05 08.04.2010 UTC+02 when dlezc...@fr.ibm.com did gyre and gimble: DL> Yep, I did a quick hack in sys_reboot sending a SIGPWR to the DL> parent of the pid namespace when this one is not the init_pid_ns, DL> but I didn't had time to propose/send an acceptable version and

Re: [lxc-devel] [PATCH] Unshare user namespace as well

2010-04-08 Thread Daniel Lezcano
Mikhail Gusarov wrote: > Unshare user namespace to make sure setrlimit and other per-user limits are > accounted properly in containers > > Signed-off-by: Mikhail Gusarov > --- > src/lxc/start.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/lxc/start.c b/src