When attaching to only some namespaces of the container but not the mount namespace, the contents of /sys and /proc of the host system do not properly reflect the context of the container's pid and/or network namespaces, and possibly others. The introduced -R option adds the possibility to additionally unshare the mount namespace (when it is not being attached) and remount /sys and /proc in order for those filesystems to properly reflect the container's context even when only attaching to some of the namespaces. Signed-off-by:Christian Seiler <christian@iwakd.de> Acked-by:
Serge Hallyn <serge.hallyn@canonical.com> Cc: Daniel Lezcano <daniel.lezcano@free.fr>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| examples | Loading commit data... | |
| rootfs | Loading commit data... | |
| FAQ.txt | Loading commit data... | |
| Makefile.am | Loading commit data... | |
| common_options.sgml.in | Loading commit data... | |
| lxc-attach.sgml.in | Loading commit data... | |
| lxc-cgroup.sgml.in | Loading commit data... | |
| lxc-checkpoint.sgml.in | Loading commit data... | |
| lxc-console.sgml.in | Loading commit data... | |
| lxc-create.sgml.in | Loading commit data... | |
| lxc-destroy.sgml.in | Loading commit data... | |
| lxc-execute.sgml.in | Loading commit data... | |
| lxc-freeze.sgml.in | Loading commit data... | |
| lxc-kill.sgml.in | Loading commit data... | |
| lxc-ls.sgml.in | Loading commit data... | |
| lxc-monitor.sgml.in | Loading commit data... | |
| lxc-ps.sgml.in | Loading commit data... | |
| lxc-restart.sgml.in | Loading commit data... | |
| lxc-shutdown.sgml.in | Loading commit data... | |
| lxc-start.sgml.in | Loading commit data... | |
| lxc-stop.sgml.in | Loading commit data... | |
| lxc-unfreeze.sgml.in | Loading commit data... | |
| lxc-wait.sgml.in | Loading commit data... | |
| lxc.conf | Loading commit data... | |
| lxc.conf.sgml.in | Loading commit data... | |
| lxc.sgml.in | Loading commit data... | |
| see_also.sgml.in | Loading commit data... |