Adjust.CapAdjust.ambient.allowed: def of bend-osdev-caps@0.1.0.0 Import: import bend-osdev-caps@0.1.0.0/adjust.bend as Adjust Lines 97-99 of bend-osdev-caps@0.1.0.0/adjust.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-caps@0.1.0.0/adjust.bend&start_line=97&end_line=99 import Base import bend-osdev-caps@0.1.0.0/caps.bend as C def CapAdjust.ambient.allowed(c: C.CapCred, +x: U32) -> Bool: +s = C.CapCred.sets(c) Bool.and(C.CapSet.has(C.CapState.permitted(s), x), C.CapSet.has(C.CapState.inheritable(s), x)) Uses (8): 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=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-osdev-caps@0.1.0.0/caps.bend&name=CapCred https://jend.leeeet.dev/definition.txt?path=bend-osdev-caps@0.1.0.0/caps.bend&name=CapCred.sets https://jend.leeeet.dev/definition.txt?path=bend-osdev-caps@0.1.0.0/caps.bend&name=CapSet.has https://jend.leeeet.dev/definition.txt?path=bend-osdev-caps@0.1.0.0/caps.bend&name=CapState.inheritable https://jend.leeeet.dev/definition.txt?path=bend-osdev-caps@0.1.0.0/caps.bend&name=CapState.permitted