build: add RBAC filter to the only/exclude directive.

This commit is contained in:
Alexandre Pujol 2025-05-26 01:00:08 +02:00
parent 780ca65953
commit c07c5838e4
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 8 additions and 0 deletions

View file

@ -80,6 +80,7 @@ func Configure() {
if full && paths.New("apparmor.d/groups/_full").Exist() {
prepare.Register("fsp")
builder.Register("fsp")
prebuild.RBAC = true
} else if prebuild.SystemdDir.Exist() {
prepare.Register("systemd-early")
}