diff --git a/pkg/prebuild/prepare.go b/pkg/prebuild/prepare.go index 71927003..6932630e 100644 --- a/pkg/prebuild/prepare.go +++ b/pkg/prebuild/prepare.go @@ -180,15 +180,8 @@ func SetDefaultSystemd() error { // See https://apparmor.pujol.io/development/structure/#full-system-policy func SetFullSystemPolicy() error { // Install full system policy profiles - profiles := []string{ - "systemd", "systemd-user", - "default", "default-bwrap", "default-sudo", "default-app", - } - for _, name := range profiles { - err := paths.New("apparmor.d/groups/_full/" + name).CopyTo(RootApparmord.Join(name)) - if err != nil { - return err - } + if err := copyTo(paths.New("apparmor.d/groups/_full/"), Root.Join("apparmor.d")); err != nil { + return err } // Set systemd profile name