]> git.ipfire.org Git - thirdparty/util-linux.git/commit
nsenter: add functions to enable/disable namespaces
authorKarel Zak <kzak@redhat.com>
Thu, 17 Oct 2024 09:14:49 +0000 (11:14 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 17 Oct 2024 09:14:49 +0000 (11:14 +0200)
commitdf321c9e038bccf6c99f82a1687e11a075635c93
tree4811c1f5f5e034b5071ac9743953a6247306365f
parentfda5dc760a0501554f079558ebd95a4f91fba7cd
nsenter: add functions to enable/disable namespaces

Currently, enabled namespaces are those with an open file descriptor.
However, if we support pidfd, this will become unnecessary and we will
need an FD-independent enable/disable mechanism.

It also makes sense to delay opening --target <pid> namespaces files
until everything is ready and only handle it in one place.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/nsenter.c