morpheus-base

morpheus base system
git clone git://git.2f30.org/morpheus-base
Log | Files | Refs

unshare.1 (1537B)


      1 .TH UNSHARE 1 ubase-VERSION
      2 .SH NAME
      3 \fBunshare\fR - run program with some namespaces unshared from parent
      4 .SH SYNOPSIS
      5 \fBunshare\fR [\fB-muinpU\fR] cmd [\fIargs...\fR]
      6 .SH DESCRIPTION
      7 \fBunshare\fR
      8 Unshares the indicated namespaces from the parent process
      9 and then executes the specified program. The namespaces to be unshared are
     10 indicated via options.
     11 .SH OPTIONS
     12 .TP
     13 \fB-m\fR
     14 Unshare the mount namespace, so that the calling process has a private
     15 copy of its namespace which is not shared with any other process.
     16 This flag has the same effect as the \fBclone(2) CLONE_NEWNS\fR flag.
     17 .TP
     18 \fB-u\fR
     19 Unshare the UTS IPC namespace, so that the calling process has a
     20 private copy of the UTS namespace which is not shared with any other
     21 process. This flag has the same effect as the \fBclone(2) CLONE_NEWUTS\fR
     22 flag.
     23 .TP
     24 \fB-i\fR
     25 Unshare the System V IPC namespace, so that the calling process has a
     26 private copy of the System V IPC namespace which is not shared with
     27 any other process. This flag has the same effect as the \fBclone(2)
     28 CLONE_NEWIPC\fR flag
     29 .TP
     30 \fB-n\fR
     31 Unshare the network namespace, so that the calling process is moved
     32 into a new network namespace which is not shared with any previously
     33 existing process. This flag has the same effect as the \fBclone(2)
     34 CLONE_NEWNET\fR flag.
     35 .TP
     36 \fB-p\fR
     37 Create the process in a new PID namespace. This flag has the same
     38 effect as the \fBclone(2) CLONE_NEWPID\fR flag.
     39 .TP
     40 \fB-U\fR
     41 The process will have a distinct set of UIDs, GIDs and capabilities.
     42 .SH SEE ALSO
     43 clone(2), unshare(2)