def CapExec.flags.file
import bend-osdev-caps@0.1.0.0/exec.bend as Execimport Base
import bend-osdev-caps@0.1.0.0/caps.bend as C
80# the file's own sets (empty when it has none); effective is the notional
81# effective bit of the root rules, ORed with the file's own
82def CapExec.flags.file(priv: Bool, effective: Bool, fc: Maybe<&2, C.CapFileSets>) -> CapExecFlags:
83 match fc:
84 case None{}:
85 CapExecFlags{priv, effective, C.CapSet.empty(), C.CapSet.empty()}
86 case Some{C.CapFileSets{fp, fi, fe}}:
87 CapExecFlags{priv, Bool.or(effective, fe), fp, fi}