]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace-util: introduce namespace_enter_delegated()
authorMike Yuan <me@yhndnzj.com>
Wed, 17 Dec 2025 11:32:14 +0000 (12:32 +0100)
committerMike Yuan <me@yhndnzj.com>
Tue, 10 Feb 2026 20:54:11 +0000 (21:54 +0100)
commit1a1c5ab758eca2d94130a7a4d1ba2bfa424f706e
tree5fa9e213e8d9593c4349711957f9fb8cd76ced2a
parentbae58ceff7c7a10280017a64b12ff097dba48147
namespace-util: introduce namespace_enter_delegated()

Typically when entering a namespace the userns is handled last,
because we assume our process is more privileged than the userns.
However, that assumption no longer holds for user managers, which
have no privilege over initial userns and all other namespaces
are actually owned by the userns unshared first (in executor).
Hence, let's add another flavor namespace_enter_delegated() to
accommodate that use case.
src/basic/namespace-util.c
src/basic/namespace-util.h