def CapExec.effective

bend-osdev-caps@0.1.0.0 · exec.bend:23

import bend-osdev-caps@0.1.0.0/exec.bend as Exec
import Base
import bend-osdev-caps@0.1.0.0/caps.bend as C

23def CapExec.effective(effective: Bool, p: C.CapSet(), a: C.CapSet()) -> C.CapSet():
24  match effective:
25    case True{}:
26      p
27    case False{}:
28      a

Uses (2)

Used by (1)