[PATCH] proc(5): clarify the root symlink and mount namespaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If the target process is in a different mount namespace, the root symlink
actually shows that view of the filesystem.  As an example:
/* Terminal 1 */
$ unshare -Urnm
17168

/* Terminal 2 */

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
 man5/proc.5 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/man5/proc.5 b/man5/proc.5
index 3a5f4407c657..0680902c54a5 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -1513,6 +1513,10 @@ root directory, and behaves in the same way as
 and
 .IR fd/* .
 
+Note however that this file is not merely a symlink.
+It provides the same view of the filesystem (including namespaces and the
+set of per-process mounts) as the process itself.
+
 .\" The following was still true as at kernel 2.6.13
 In a multithreaded process, the contents of this symbolic link
 are not available if the main thread has already terminated
-- 
2.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux