proc(5): ffix

This commit is contained in:
Mike Frysinger 2016-10-07 12:21:00 -07:00 committed by Michael Kerrisk
parent 750653a812
commit 89f929055e
1 changed files with 3 additions and 3 deletions

View File

@ -1525,7 +1525,7 @@ and in that shell we create some new mount points:
$ \fBPS1='sh1# ' unshare \-Urnm\fP $ \fBPS1='sh1# ' unshare \-Urnm\fP
sh1# \fBmount \-t tmpfs tmpfs /etc\fP # Mount empty tmpfs at /etc sh1# \fBmount \-t tmpfs tmpfs /etc\fP # Mount empty tmpfs at /etc
sh1# \fBmount \-\-bind /usr /dev\fP # Mount /usr at /dev sh1# \fBmount \-\-bind /usr /dev\fP # Mount /usr at /dev
sh1# \fBecho $$ sh1# \fBecho $$\fP
27123 27123
.in .in
.fi .fi
@ -1533,10 +1533,10 @@ sh1# \fBecho $$
In a second terminal window, in the initial mount namespace, In a second terminal window, in the initial mount namespace,
we look at the contents of the corresponding mounts in we look at the contents of the corresponding mounts in
the initial and new namespaces: the initial and new namespaces:
.nf .nf
.in +4n .in +4n
$ \fBPS1='sh2# ' sudo sh $ \fBPS1='sh2# ' sudo sh\fP
sh2# \fBls /etc | wc \-l\fP # In initial NS sh2# \fBls /etc | wc \-l\fP # In initial NS
309 309
sh2# \fBls /proc/27123/root/etc | wc \-l\fP # /etc in other NS sh2# \fBls /proc/27123/root/etc | wc \-l\fP # /etc in other NS