def CapAdjust.ambient.allowed

bend-osdev-caps@0.1.0.0 · adjust.bend:97

import bend-osdev-caps@0.1.0.0/adjust.bend as Adjust
import 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))

Uses (8)

Used by (4)