currentMountNamespace is the same for the mount namespace: a path, and so a socket's absence or identity, means something only to a reader with the recorder's view of the filesystem (BUG-4090).
()
| 28 | // so a socket's absence or identity, means something only to a reader |
| 29 | // with the recorder's view of the filesystem (BUG-4090). |
| 30 | func currentMountNamespace() (uint64, error) { return currentNamespace("mnt") } |
| 31 | |
| 32 | func currentNamespace(kind string) (uint64, error) { |
| 33 | info, err := os.Stat("/proc/self/ns/" + kind) |
nothing calls this directly
no test coverage detected