]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: disable propagation for selected host API bind mounts 26646/head
authorLennart Poettering <lennart@poettering.net>
Thu, 2 Mar 2023 18:01:39 +0000 (19:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 3 Mar 2023 11:17:49 +0000 (12:17 +0100)
commit56339a10db0c701a298f51e0d6cb02901b366ffa
tree31a5ae9b60eec31d055666e0d94f928a115a2914
parent75f8173247e7e5c50e1121c5330acf6f165a910d
nspawn: disable propagation for selected host API bind mounts

We bind mount two selected inodes from the host into our container.
Let's turn off propagation for that, since we just want those inodes,
nothing else.

With this change "grep master: /proc/self/mountinfo" should list only
the mount propagation "tunnel" dir, and nothing else anymore.
src/nspawn/nspawn-mount.c