summaryrefslogtreecommitdiffstats
path: root/sys-utils/unshare.1
diff options
context:
space:
mode:
authorKarel Zak2013-01-17 13:00:44 +0100
committerKarel Zak2013-01-17 13:00:44 +0100
commitef6acdb81c3610ccf4da25db5728277b5a162e78 (patch)
treeaf24681710c6bdff9b88309a93af9680181dad9e /sys-utils/unshare.1
parentfindmnt: use tree output in more cases (diff)
downloadkernel-qcow2-util-linux-ef6acdb81c3610ccf4da25db5728277b5a162e78.tar.gz
kernel-qcow2-util-linux-ef6acdb81c3610ccf4da25db5728277b5a162e78.tar.xz
kernel-qcow2-util-linux-ef6acdb81c3610ccf4da25db5728277b5a162e78.zip
Revert "unshare: support the switching of namespaces"
The functionality will be replaced with nsenter from Eric W. Biederman. This reverts commit 4bbe8099390d528018890efa914e268de3c4b44b.
Diffstat (limited to 'sys-utils/unshare.1')
-rw-r--r--sys-utils/unshare.136
1 files changed, 12 insertions, 24 deletions
diff --git a/sys-utils/unshare.1 b/sys-utils/unshare.1
index c37083d41..1325e3481 100644
--- a/sys-utils/unshare.1
+++ b/sys-utils/unshare.1
@@ -3,15 +3,15 @@
.\"
.TH UNSHARE 1 "October 2008" "util-linux" "User Commands"
.SH NAME
-unshare \- run program with some namespaces unshared or changed from parent
+unshare \- run program with some namespaces unshared from parent
.SH SYNOPSIS
.B unshare
.RI [ options ]
program
.RI [ arguments ]
.SH DESCRIPTION
-Unshares or migrates specified namespaces from parent process and then executes specified
-program. Available namespaces are:
+Unshares specified namespaces from parent process and then executes specified
+program. Unshareable namespaces are:
.TP
.BR "mount namespace"
mounting and unmounting filesystems will not affect rest of the system
@@ -33,43 +33,31 @@ etc. (\fBCLONE_NEWNET\fP flag).
.TP
See the \fBclone\fR(2) for exact semantics of the flags.
.SH OPTIONS
-Note when specifying the optional \fB<pid>\fP argument, the string of option,
-equal sign (=), and the pid must not contain any blanks or other white space.
-The correct form is for example --ipc=123 or -i=123.
.TP
.BR \-h , " \-\-help"
Print a help message,
.TP
-.BR \-m , " \-\-mount " \fI[=pid]\fP
-Unshare the mount namespace, or, when a pid is specified, migrate the mount
-namespace to the one attached to the specified pid.
+.BR \-m , " \-\-mount"
+Unshare the mount namespace,
.TP
-.BR \-u , " \-\-uts " \fI[=pid]\fP
-Unshare the UTC namespace, or, when a pid is specified, migrate the uts
-namespace to the one attached to the specified pid
+.BR \-u , " \-\-uts"
+Unshare the UTC namespace,
.TP
-.BR \-i , " \-\-ipc " \fI[=pid]\fP
-Unshare the IPC namespace, or, when a pid is specified, migrate the ipc
-namespace to the one attached to the specified pid
+.BR \-i , " \-\-ipc"
+Unshare the IPC namespace,
.TP
-.BR \-n , " \-\-net " \fI[=pid]\fP
-Unshare the network namespace, or, when a pid is specified, migrate the net
-namespace to the one attached to the specified pid
+.BR \-n , " \-\-net"
+Unshare the network namespace.
.SH NOTES
The unshare command drops potential privileges before executing the
target program. This allows to setuid unshare.
-.P
-Support for migrating processes between mount and pid namespace is available in
-kernels 3.8 and later
.SH SEE ALSO
.BR unshare (2),
-.BR setns (2),
.BR clone (2)
.SH BUGS
None known so far.
-.SH AUTHORS
+.SH AUTHOR
Mikhail Gusarov <dottedmag@dottedmag.net>
-Neil Horman <nhorman@tuxdriver.com>
.SH AVAILABILITY
The unshare command is part of the util-linux package and is available from
ftp://ftp.kernel.org/pub/linux/utils/util-linux/.