MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / currentMountNamespace

Function currentMountNamespace

internal/cli/pid_ns_linux.go:30–30  ·  view source on GitHub ↗

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).

()

Source from the content-addressed store, hash-verified

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).
30func currentMountNamespace() (uint64, error) { return currentNamespace("mnt") }
31
32func currentNamespace(kind string) (uint64, error) {
33 info, err := os.Stat("/proc/self/ns/" + kind)

Callers

nothing calls this directly

Calls 1

currentNamespaceFunction · 0.85

Tested by

no test coverage detected