def AaRule.any_match
import bend-osdev-apparmor@0.1.0.0/rule.bend as Ruleimport Base
import bend-osdev-apparmor@0.1.0.0/glob.bend as G
114# some pattern of the list matches s
115def AaRule.any_match(gs: List<&2, G.AaGlob>, +s: List<&2, U32>) -> Bool:
116 match gs:
117 case Nil{}:
118 False{}
119 case Con{g, t}:
120 Bool.or(G.AaGlob.matches(g, s), AaRule.any_match(t, s))