def CapAdjust.ambient.allowed
import bend-osdev-caps@0.1.0.0/adjust.bend as Adjustimport Base
import bend-osdev-caps@0.1.0.0/caps.bend as C
97def CapAdjust.ambient.allowed(c: C.CapCred, +x: U32) -> Bool:
98 +s = C.CapCred.sets(c)
99 Bool.and(C.CapSet.has(C.CapState.permitted(s), x), C.CapSet.has(C.CapState.inheritable(s), x))