]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Add `--user-parent` option to nsenter
authorigo95862 <igo95862@yandex.ru>
Sun, 26 Mar 2023 15:04:11 +0000 (21:04 +0600)
committerigo95862 <igo95862@yandex.ru>
Thu, 22 Jun 2023 18:26:13 +0000 (00:26 +0600)
commit01a6d803b5980c6409c42b5f269441fd1a9d935c
treec15ae01b9809c726c1c5aef0974feb38a08c1470
parent640e93f48040e72b06f038159c54ffa3bbc86e0c
Add `--user-parent` option to nsenter

When this option is used nsenter will fetch the parent user
namespace from any namespace file descriptors available.

It can be combined with existing `--user` option in which case
the parent user namespace will be fetched from the user namespace
and replace it.

The usecase of this option is when a user namespace that owns
the other type namespaces we want to switch to is not actually
bound to any process. Without using ioctl it is impossible to
acquire namespace file descriptor. For example, bubblewrap
`bwrap` command creates unbinded user namespace when `--dev`
option is used.
bash-completion/nsenter
sys-utils/nsenter.1.adoc
sys-utils/nsenter.c