Changes to v2: - patch 5: turned `namespaces` into an array and added Acked-by Serge E. Hallyn - patch 7: various things listed by Serge: * description comment right below the license header * mentioned /dev/cgroup in the mount_should_error query (since it returns false for all /dev paths it didn't need new code) * read_mounts: check malloc(), realloc() and strdup() (With the fact that free() checks its parameter for NULL I just checked all 3 strdup()s together at the end. I set errno to ENOMEM as the caller uses strerror() on failure. * 'break' after finding the 'mnt:' argument
Wolfgang Bumiller (7): start.c:preserve_ns: added pid parameter preserve container namespace added stop-hook entries run stop hook between STOPPING and STOPPED states pass namespace handles to the stop hook document the stop hook added the unmount-namespace hook doc/lxc.container.conf.sgml.in | 27 +++++- hooks/Makefile.am | 6 ++ hooks/unmount-namespace.c | 213 +++++++++++++++++++++++++++++++++++++++++ src/lxc/conf.c | 4 +- src/lxc/conf.h | 2 +- src/lxc/confile.c | 3 + src/lxc/start.c | 47 ++++++++- src/lxc/start.h | 1 + 8 files changed, 295 insertions(+), 8 deletions(-) create mode 100644 hooks/unmount-namespace.c -- 2.1.4 _______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel