]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount-setup: change the system mount propagation to shared by default only at bootup
authorWen Yang <wenyang@linux.alibaba.com>
Mon, 23 Mar 2020 02:42:46 +0000 (10:42 +0800)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Apr 2020 08:14:20 +0000 (10:14 +0200)
commitf74349d88bb039a134b225653e8e59d04af4bb7f
tree909fe333e5a3cdff2e24b1e4250d00cca5042dfc
parentca03142040f944385c9561cb9c030a64535a2e86
mount-setup: change the system mount propagation to shared by default only at bootup

The commit b3ac5f8cb987 has changed the system mount propagation to
shared by default, and according to the following patch:
https://github.com/opencontainers/runc/pull/208
When starting the container, the pouch daemon will call runc to execute
make-private.

However, if the systemctl daemon-reexec is executed after the container
has been started, the system mount propagation will be changed to share
again by default, and the make-private operation above will have no chance
to execute.
src/core/main.c
src/core/mount-setup.c
src/core/mount-setup.h