mirror of https://github.com/mkerrisk/man-pages
setns.2: Minor fix: rename example program binary
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
ffec080046
commit
c0ce4807c1
|
@ -119,7 +119,7 @@ and executes the specified command inside that namespace.
|
|||
|
||||
The following shell session demonstrates the use of this program
|
||||
(compiled as a binary named
|
||||
.IR t_setns )
|
||||
.IR nsexec )
|
||||
in conjunction with the
|
||||
.BR CLONE_NEWUTS
|
||||
example program in the
|
||||
|
@ -156,12 +156,12 @@ set by the child created by the first program:
|
|||
|
||||
.nf
|
||||
.in +4n
|
||||
# \fB./t_setns /proc/3550/ns/uts /bin/bash\fP
|
||||
# \fBuname -n\fP # Executed in shell started by t_setns
|
||||
# \fB./nsexec /proc/3550/ns/uts /bin/bash\fP
|
||||
# \fBuname -n\fP # Executed in shell started by nsexec
|
||||
bizarro
|
||||
.in
|
||||
.fi
|
||||
|
||||
nsexec
|
||||
.SS Program source
|
||||
.nf
|
||||
#define _GNU_SOURCE
|
||||
|
|
Loading…
Reference in New Issue