From ef6acdb81c3610ccf4da25db5728277b5a162e78 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 17 Jan 2013 13:00:44 +0100 Subject: Revert "unshare: support the switching of namespaces" The functionality will be replaced with nsenter from Eric W. Biederman. This reverts commit 4bbe8099390d528018890efa914e268de3c4b44b. --- sys-utils/unshare.1 | 36 ++++++++++++------------------------ 1 file changed, 12 insertions(+), 24 deletions(-) (limited to 'sys-utils/unshare.1') 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\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 -Neil Horman .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/. -- cgit v1.2.3-55-g7522