def Caps.bset_drop

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

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

78# drop capability x from the bounding set: CapsInvalidCap (EINVAL) if the
79# kernel does not support x, CapsNoSetpcap (EPERM) without CAP_SETPCAP in the
80# effective set
81def Caps.bset_drop(k: C.CapsKernel, +c: C.CapCred, +x: U32) -> Result<&2, &2, C.CapsError, C.CapCred>:
82  CapAdjust.bset_drop.go(C.CapsKernel.valid(k, x), C.CapSet.has(C.CapState.effective(C.CapCred.sets(c)), C.Cap.setpcap()), c, x)

Uses (11)

Used by (4)