Expand description
Types and parsers shared by procfs producers and consumers.
Structs§
- Mount
Info Row - Identity-bearing fields from one Linux
/proc/*/mountinforow.
Constants§
Functions§
- exclude_
ephemeral_ host_ seed_ mounts - Drop the rows
is_ephemeral_host_seed_mountclassifies from raw mountinfo contents, keeping every other row, newline included, in its original order. Detcore’s guest-read capture, Detcore’s fdinfomnt_idcapture and hermit-cli’s launch-time identity capture all use this one filter, so they agree on the guest mount membership. - is_
ephemeral_ host_ seed_ fields is_ephemeral_host_seed_mountfor a row already split into its mountpoint and filesystem type (fields 5 and 9).- is_
ephemeral_ host_ seed_ mount - True for one ephemeral host FUSE seed mount row in
/proc/<pid>/mountinfogrammar: filesystem typefuse.squashfuse_lland a mount point whose last path component is a host seed name,<hex>-seed-<seed>-ns-<digits>, where<seed>is a non-empty run of ASCII letters, digits,_and-. - mount_
identity_ provenance_ is_ well_ formed - Whether captured mount-identity provenance is well formed: the namespace order names each raw mount ID once, and the assignment order numbers each raw ID once and names raw 0 only where the namespace order does (an fdinfo zero is the anonymous class and is never numbered). Detcore’s mount-ID pool accepts exactly these, and a producer that hands provenance to a backend without a second capture checks them first.
- mount_
ids_ are_ ordered_ subset - Whether every visible mount ID occurs once and in the same relative order as the producer-captured namespace.
- parse_
fdinfo_ mount_ id - Parse the one decimal
mnt_idfield required by Linux fdinfo. - parse_
mountinfo - Strictly parse a Linux
/proc/*/mountinfosnapshot.