def Caps.ambient_raise

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

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

117# PR_CAP_AMBIENT_RAISE: x must be both permitted and inheritable
118# (CapsAmbientNotAllowed), and SECBIT_NO_CAP_AMBIENT_RAISE clear
119# (CapsAmbientRaiseLocked)
120def Caps.ambient_raise(k: C.CapsKernel, +c: C.CapCred, +x: U32) -> Result<&2, &2, C.CapsError, C.CapCred>:
121  CapAdjust.ambient_raise.go(C.CapsKernel.valid(k, x), C.CapCred.no_ambient_raise(c), CapAdjust.ambient.allowed(c, x), c, x)

Uses (9)

Used by (4)