]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: ensure child hangs around until we persisted namespace
authorChristian Brauner <brauner@kernel.org>
Sun, 8 Jan 2023 12:05:20 +0000 (13:05 +0100)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Sun, 8 Jan 2023 12:05:20 +0000 (13:05 +0100)
commit81a73d92cccbd0344287fe6c2e0177a81f09b69e
tree9119a20bb4fd3e921bb694eebb858fc13514f335
parentf9596dd4807f4d8da5bda14cd65efc0e5c375cac
libmount: ensure child hangs around until we persisted namespace

When we create a new namespace in a child process to persist it we need
to ensure that the child hangs around. During exit the child will drop
all references to its namespaces and so by the time we call open we
might already fail to open the namespace. Fix this.

Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
libmount/src/hook_idmap.c