summaryrefslogtreecommitdiffstats
path: root/sys-utils/nsenter.1
diff options
context:
space:
mode:
authorKarel Zak2015-03-20 15:26:58 +0100
committerKarel Zak2015-03-20 15:39:38 +0100
commit355ee3b8981ed4990fd069b097dd8ae0f7373920 (patch)
tree0d23c097d571108c356670d041654f0c936ae8dd /sys-utils/nsenter.1
parentmount: don't remount read-only on --bind (diff)
downloadkernel-qcow2-util-linux-355ee3b8981ed4990fd069b097dd8ae0f7373920.tar.gz
kernel-qcow2-util-linux-355ee3b8981ed4990fd069b097dd8ae0f7373920.tar.xz
kernel-qcow2-util-linux-355ee3b8981ed4990fd069b097dd8ae0f7373920.zip
nsenter: add -Z to set selinux context
The new context is copied from --target <PID>. This solution allows to keep SELinux happy when you enter container by nsenter(1). Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1116100 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/nsenter.1')
-rw-r--r--sys-utils/nsenter.115
1 files changed, 12 insertions, 3 deletions
diff --git a/sys-utils/nsenter.1 b/sys-utils/nsenter.1
index 8a3b25ecc..79fc2e5c6 100644
--- a/sys-utils/nsenter.1
+++ b/sys-utils/nsenter.1
@@ -155,6 +155,11 @@ Do not fork before exec'ing the specified program. By default, when entering a
PID namespace, \fBnsenter\fP calls \fBfork\fP before calling \fBexec\fP so that
any children will also be in the newly entered PID namespace.
.TP
+\fB\-Z\fR, \fB\-\-follow\-context\fR
+Set the SELinux security context used for executing a new process according to
+already running process specified by \fB\-\-target\fR PID. (The util-linux has
+to be compiled with SELinux support otherwise the option is unavailable.)
+.TP
\fB\-V\fR, \fB\-\-version\fR
Display version information and exit.
.TP
@@ -163,10 +168,14 @@ Display help text and exit.
.SH SEE ALSO
.BR setns (2),
.BR clone (2)
-.SH AUTHOR
-.MT ebiederm@xmission.com
+.SH AUTHORS
+.UR biederm@xmission.com
Eric Biederman
-.ME
+.UE
+.br
+.UR kzak@redhat.com
+Karel Zak
+.UE
.SH AVAILABILITY
The nsenter command is part of the util-linux package and is available from
.UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/