]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn-mount: Use setns() in wipe_fully_visible_api_fs()
authorDaan De Meyer <daan@amutable.com>
Mon, 16 Feb 2026 18:59:10 +0000 (19:59 +0100)
committerMike Yuan <me@yhndnzj.com>
Tue, 17 Feb 2026 03:55:24 +0000 (04:55 +0100)
commit48c84fe730a1590b2c3ed078283ea283676a2a6f
treed6f2a96b2e6f24919b8f29434e85da2f95229d28
parent710742270bf9343a36c7cae382f04fd5e8073ce8
nspawn-mount: Use setns() in wipe_fully_visible_api_fs()

namespace_enter() now does a is_our_namespace() check, which requires
/proc on older kernels, which is not available anymore after we call
do_wipe_fully_visible_api_fs() in wipe_fully_visible_api_fs().

Let's just call setns() instead as namespace_enter() is overkill to
enter a single namespace anyway.
src/nspawn/nspawn-mount.c