def ex.root_e
bend-osdev-caps@0.1.0.0 · PROOF.bend:776
import bend-osdev-caps@0.1.0.0/PROOF.bend as PROOF
import Base
import bend-osdev-caps@0.1.0.0/caps.bend as C
import bend-osdev-caps@0.1.0.0/exec.bend as E
776def ex.root_e(+priv: Bool, +s: C.CapState) -> {C.CapSet.subset(C.CapState.ambient(s), C.CapState.inheritable(s)) == True{} : Bool} -> {C.CapState.effective(E.CapExec.sets(E.CapExecFlags{priv, True{}, C.CapSet.full(), C.CapSet.full()}, s)) == C.CapSet.union(C.CapState.inheritable(s), C.CapState.bounding(s)) : C.CapSet()}:
777 match priv s:
778 case True{} C.CapState{+p, +i, +e, +b, +a}:
779 h => set.root_z(i, b)
780 case False{} C.CapState{+p, +i, +e, +b, +a}:
781 h => set.root_a(i, b, a)(h)