def AaChB.glob

bend-osdev-apparmor@0.1.0.0 · rule_change_profile.bend:64

import bend-osdev-apparmor@0.1.0.0/rule_change_profile.bend as RuleChangeProfile
import Base
import bend-osdev-apparmor@0.1.0.0/glob.bend as G
import bend-osdev-apparmor@0.1.0.0/error.bend as E

64# a pattern: the target after the arrow, else the exec condition
65def AaChB.glob(b: AaChB, g: G.AaGlob, src: E.AaSrc) -> Result<&2, &2, E.AaError, AaChB>:
66  match b:
67    case AaChB{m, e, +ar, tg}:
68      match ar:
69        case True{}:
70          AaChB.set_target(AaChB{m, e, ar, tg}, g, src)
71        case False{}:
72          AaChB.set_exec(AaChB{m, e, ar, tg}, g, src)

Uses (8)

Used by (1)