mirror of https://github.com/mkerrisk/man-pages
user_namespaces.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
ced6277a7b
commit
791ea4b39c
|
@ -985,11 +985,11 @@ First, we look at the run-time environment:
|
||||||
|
|
||||||
.in +4n
|
.in +4n
|
||||||
.nf
|
.nf
|
||||||
$ \fBuname -rs\fP # Need Linux 3.8 or later
|
$ \fBuname \-rs\fP # Need Linux 3.8 or later
|
||||||
Linux 3.8.0
|
Linux 3.8.0
|
||||||
$ \fBid -u\fP # Running as unprivileged user
|
$ \fBid \-u\fP # Running as unprivileged user
|
||||||
1000
|
1000
|
||||||
$ \fBid -g\fP
|
$ \fBid \-g\fP
|
||||||
1000
|
1000
|
||||||
.fi
|
.fi
|
||||||
.in
|
.in
|
||||||
|
@ -1008,7 +1008,7 @@ and group ID
|
||||||
|
|
||||||
.in +4n
|
.in +4n
|
||||||
.nf
|
.nf
|
||||||
$ \fB./userns_child_exec -p -m -U -M '0 1000 1' -G '0 1000 1' bash\fP
|
$ \fB./userns_child_exec \-p \-m \-U \-M '0 1000 1' \-G '0 1000 1' bash\fP
|
||||||
.fi
|
.fi
|
||||||
.in
|
.in
|
||||||
|
|
||||||
|
@ -1045,7 +1045,7 @@ any processes outside the PID namespace:
|
||||||
|
|
||||||
.in +4n
|
.in +4n
|
||||||
.nf
|
.nf
|
||||||
bash$ \fBmount -t proc proc /proc\fP
|
bash$ \fBmount \-t proc proc /proc\fP
|
||||||
bash$ \fBps ax\fP
|
bash$ \fBps ax\fP
|
||||||
PID TTY STAT TIME COMMAND
|
PID TTY STAT TIME COMMAND
|
||||||
1 pts/3 S 0:00 bash
|
1 pts/3 S 0:00 bash
|
||||||
|
|
Loading…
Reference in New Issue