]> git.ipfire.org Git - thirdparty/systemd.git/commit
tests: prefer MS_SLAVE over MS_PRIVATE for turning off mount propagation
authorLennart Poettering <lennart@poettering.net>
Fri, 20 Jul 2018 13:33:48 +0000 (15:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Jul 2018 14:51:20 +0000 (16:51 +0200)
commit74bf45bb2cb485a1f61e1df65ae72a263eaeb99b
tree5ef9a5bf537fa04055d8358108b99627b3083042
parentbe60dd3ec8e492c3dec712b9be823f578fd91d64
tests: prefer MS_SLAVE over MS_PRIVATE for turning off mount propagation

When we open our own little namespace for running our tests in, let's
turn off mount propagation only one way, rather than both ways. This is
better as this means we don't pin host mounts unnecessarily long in our
namespace, even though the host already got rid of them. This is because
MS_SLAVE in contrast to MS_PRIVATE allows umount events to propagate
from the host into our environment.
src/test/test-process-util.c
src/test/test-udev.c