奇怪的挂载条目,网络上的 procfs:

phk*_*phk 7 linux filesystems mount procfs

在设备上,我得到以下奇怪的条目mount

none on net:[4026532603] type proc (rw,relatime)
none on net:[4026532424] type proc (rw,relatime)
Run Code Online (Sandbox Code Playgroud)

知道这可能是什么或为了什么吗?这是我第一次看到 procfs 用于除 /proc 之外的任何东西。这个“网:”是什么?像套接字或管道之类的东西?

我在带有某种形式的基于 BusyBox 的 Linux 的嵌入式设备上运行 3.8 rt 内核

潜在相关条目来自/proc/mounts

rootfs / rootfs rw 0 0
none /proc proc rw,relatime 0 0
none net:[4026532603] proc rw,relatime 0 0
none net:[4026532424] proc rw,relatime 0 0
mgmt /sys sysfs rw,relatime 0 0
Run Code Online (Sandbox Code Playgroud)

更新:

感谢@VenkatC 的回答,我现在知道它与命名空间有关,正如以下输出所证实的那样:

$ ls -l /proc/$$/ns
total 0
lrwxrwxrwx 1 root root 0 Nov  3 18:59 ipc -> ipc:[4026531839]
lrwxrwxrwx 1 root root 0 Nov  3 18:59 mnt -> mnt:[4026532733]
lrwxrwxrwx 1 root root 0 Nov  3 18:59 net -> net:[4026532603]
lrwxrwxrwx 1 root root 0 Nov  3 18:59 pid -> pid:[4026531836]
lrwxrwxrwx 1 root root 0 Nov  3 18:59 uts -> uts:[4026531838]
Run Code Online (Sandbox Code Playgroud)

Ven*_*atC 3

这些条目与网络命名空间相关。来自 man 命名空间(7)

   The /proc/[pid]/ns/ directory
       Each process has a /proc/[pid]/ns/ subdirectory containing one entry
       for each namespace that supports being manipulated by setns(2):
       $ ls -l /proc/$$/ns
       total 0
       lrwxrwxrwx. 1 mtk mtk 0 Jan 14 01:20 ipc -> ipc:[4026531839]
       lrwxrwxrwx. 1 mtk mtk 0 Jan 14 01:20 mnt -> mnt:[4026531840]
       lrwxrwxrwx. 1 mtk mtk 0 Jan 14 01:20 net -> net:[4026531956]
       lrwxrwxrwx. 1 mtk mtk 0 Jan 14 01:20 pid -> pid:[4026531836]
       lrwxrwxrwx. 1 mtk mtk 0 Jan 14 01:20 user -> user:[4026531837]
       lrwxrwxrwx. 1 mtk mtk 0 Jan 14 01:20 uts -> uts:[4026531838]
Run Code Online (Sandbox Code Playgroud)

正如您在上面看到的,net条目指的是网络命名空间。我了解相关设备可能正在运行具有多个命名空间的不同进程

我能够创建一个测试命名空间并在 /proc/mounts 中看到类似的安装

[cv@cent2 ~]$ ip netns list
netns1
[cv@cent2 ~]$ grep net: /proc/mounts
proc net:[4026532238] proc rw,nosuid,nodev,noexec,relatime 0 0
proc net:[4026532238] proc rw,nosuid,nodev,noexec,relatime 0 0
Run Code Online (Sandbox Code Playgroud)