core-extra/daemon/core
Gabriel Somlo a5ae485fa6 SimpleLxcNode: Don't umount directories before killing vnoded
A node's private mounts are currently removed before killing
vnoded, which makes them unavailable during container service
shutdown. Any such service accessing the filesystem for atexit()
cleanup (e.g., rsyslogd), will do so on the host filesystem
instead, very likely causing unintended damage.

For example, the default behavior of rsyslogd is to remove its
listening socket (/dev/log, or /run/systemd/journal/dev-log) at
shutdown from its atexit() handler. If the node's private '/dev'
or '/run/systemd/journal' mount has already been removed, the
host-side /dev/log or /run/systemd/journal/dev-log sockets will
be removed instead!

Since non-persistent (mount) namespaces are automatically
destroyed by the kernel when the last process referencing them
is killed, we should simply rely on that behavior instead of
explicitly (and prematurely) unmounting a node's private
directories during shutdown.

Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-10-09 20:53:38 -04:00
..
addons merged cleanup branch with master 2017-06-19 18:09:28 -07:00
api fixed old log imports and dont bail out on tdma model exception 2017-08-08 09:17:09 -07:00
bsd removed copyright header from all files for core-python and corens3 2017-08-18 10:38:27 -07:00
emane small doc cleanup, updated python specific docs to leverage the sphix rtd theme as well 2017-08-18 11:34:25 -07:00
misc removed copyright header from all files for core-python and corens3 2017-08-18 10:38:27 -07:00
netns SimpleLxcNode: Don't umount directories before killing vnoded 2017-10-09 20:53:38 -04:00
phys switched to making use of logzero for logging, provides nicer color output, and an easier path to switch to rotating log files 2017-08-07 11:58:51 -07:00
services removed service load methids, since they are no longer used, added way for custom service load code to facilitate the unique docker service case 2017-08-07 16:40:39 -07:00
xen switched to making use of logzero for logging, provides nicer color output, and an easier path to switch to rotating log files 2017-08-07 11:58:51 -07:00
xml removed copyright header from all files for core-python and corens3 2017-08-18 10:38:27 -07:00
.gitignore Add some gitignore files. 2015-01-28 02:15:45 +00:00
__init__.py switched to making use of logzero for logging, provides nicer color output, and an easier path to switch to rotating log files 2017-08-07 11:58:51 -07:00
broker.py attempt to fix missing updates for sdt, moved broker specific code to broker 2017-08-07 15:37:41 -07:00
conf.py small doc cleanup, updated python specific docs to leverage the sphix rtd theme as well 2017-08-18 11:34:25 -07:00
constants.py.in fixed old log imports and dont bail out on tdma model exception 2017-08-08 09:17:09 -07:00
corehandlers.py small doc cleanup, updated python specific docs to leverage the sphix rtd theme as well 2017-08-18 11:34:25 -07:00
coreobj.py small doc cleanup, updated python specific docs to leverage the sphix rtd theme as well 2017-08-18 11:34:25 -07:00
coreserver.py switched to making use of logzero for logging, provides nicer color output, and an easier path to switch to rotating log files 2017-08-07 11:58:51 -07:00
data.py merged cleanup branch with master 2017-06-19 18:03:39 -07:00
enumerations.py merged cleanup branch with master 2017-06-19 18:03:39 -07:00
location.py switched to making use of logzero for logging, provides nicer color output, and an easier path to switch to rotating log files 2017-08-07 11:58:51 -07:00
mobility.py attempt to fix missing updates for sdt, moved broker specific code to broker 2017-08-07 15:37:41 -07:00
sdt.py fixed sendall in sdt, after testing core/sdt3d integration 2017-08-16 12:03:32 -07:00
service.py fixed old log imports and dont bail out on tdma model exception 2017-08-08 09:17:09 -07:00
session.py attempt to fix missing updates for sdt, moved broker specific code to broker 2017-08-07 15:37:41 -07:00