def AaProfile.prepend

bend-osdev-apparmor@0.1.0.0 · profile.bend:226

import bend-osdev-apparmor@0.1.0.0/profile.bend as Profile
import Base

226# p with the rules r put first (the order of rules does not matter; this is
227# what loading uses, in time proportional to r)
228def AaProfile.prepend(p: AaProfile, r: AaRules) -> AaProfile:
229  match p:
230    case AaProfile{n, a, f, r0, c, h}:
231      AaProfile{n, a, f, AaRules.append(r, r0), c, h}

Uses (3)

Used by (1)