core-extra/daemon
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
..
core SimpleLxcNode: Don't umount directories before killing vnoded 2017-10-09 20:53:38 -04:00
data merged cleanup branch with master 2017-06-19 18:09:28 -07:00
doc small doc cleanup, updated python specific docs to leverage the sphix rtd theme as well 2017-08-18 11:34:25 -07:00
examples small refactoring on how node maps are used, added logic to switch to using a map based on bsd nodes using previous logic 2017-08-09 10:03:43 -07:00
ns3 removed pip check, updated make files for using DESTDIR, removed usage of pip during make install 2017-08-21 12:55:51 -07:00
sbin small refactoring on how node maps are used, added logic to switch to using a map based on bsd nodes using previous logic 2017-08-09 10:03:43 -07:00
src removed pip check, updated make files for using DESTDIR, removed usage of pip during make install 2017-08-21 12:55:51 -07:00
tests small refactoring on how node maps are used, added logic to switch to using a map based on bsd nodes using previous logic 2017-08-09 10:03:43 -07:00
.gitignore Add some gitignore files. 2015-01-28 02:15:45 +00:00
CORE.e4p initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
Makefile.am removed pip check, updated make files for using DESTDIR, removed usage of pip during make install 2017-08-21 12:55:51 -07:00
MANIFEST.in initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
requirements.txt documentation theme update, version bumping to 5.0, changes to cleanup pass for ns3 code 2017-08-17 15:25:12 -07:00
setup.cfg merged cleanup branch with master 2017-06-19 18:03:39 -07:00
setup.py removed copyright header from all files for core-python and corens3 2017-08-18 10:38:27 -07:00
test.py fixed renaming issue with sessionid to session_id 2017-08-02 12:25:57 -07:00