Caps.CapState.valid: def of bend-osdev-caps@0.1.0.0 Import: import bend-osdev-caps@0.1.0.0/caps.bend as Caps Lines 444-449 of bend-osdev-caps@0.1.0.0/caps.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-caps@0.1.0.0/caps.bend&start_line=444&end_line=449 import Base # capabilities(7)'s invariants: effective within permitted, and no capability # ambient unless it is both permitted and inheritable def CapState.valid(s: CapState) -> Bool: match s: case CapState{+p, +i, e, b, +a}: Bool.and(CapSet.subset(e, p), Bool.and(CapSet.subset(a, p), CapSet.subset(a, i))) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=bend-osdev-caps@0.1.0.0/caps.bend&name=CapSet.subset https://jend.leeeet.dev/definition.txt?path=bend-osdev-caps@0.1.0.0/caps.bend&name=CapState