summaryrefslogtreecommitdiffstats
path: root/sys-utils/nsenter.1
diff options
context:
space:
mode:
authorKarel Zak2016-12-13 14:44:33 +0100
committerKarel Zak2016-12-13 14:56:48 +0100
commit974cc006f122f36e2187cedb9d3e58dc2d24814c (patch)
treee16075477324618687eddaa2b27af0f443dc063c /sys-utils/nsenter.1
parentbuild-sys: cleanup UL_NCURSES_CHECK (diff)
downloadkernel-qcow2-util-linux-974cc006f122f36e2187cedb9d3e58dc2d24814c.tar.gz
kernel-qcow2-util-linux-974cc006f122f36e2187cedb9d3e58dc2d24814c.tar.xz
kernel-qcow2-util-linux-974cc006f122f36e2187cedb9d3e58dc2d24814c.zip
nsenter: add --all option
Let's make it easy for users to enter target process namespaces. Addresses: https://github.com/karelzak/util-linux/issues/382 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/nsenter.1')
-rw-r--r--sys-utils/nsenter.112
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-utils/nsenter.1 b/sys-utils/nsenter.1
index c85592630..9e3e60fe2 100644
--- a/sys-utils/nsenter.1
+++ b/sys-utils/nsenter.1
@@ -103,6 +103,18 @@ This should be one of the
files described in
.BR namespaces (7).
.TP
+\fB\-a\fR, \fB\-\-all\fR
+Enter all namespaces of the target process by the default
+.IR /proc/[pid]/ns/*
+namespace paths. The default paths to the target process namespaces may be
+overwritten by namespace specific options (e.g. --all --mount=[path]).
+
+The user namespace will be ignored if the same as the caller's current user
+namespace. It prevents a caller that has dropped capabilities from regaining
+those capabilities via a call to setns(). See
+.BR setns (2)
+for more details.
+.TP
\fB\-t\fR, \fB\-\-target\fR \fIpid\fP
Specify a target process to get contexts from. The paths to the contexts
specified by