fix(build): ubuntu & debian share some build spec.

This commit is contained in:
Alexandre Pujol 2023-04-24 00:17:00 +01:00
parent b53509664a
commit 9727d1ce1f
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 8 additions and 10 deletions

View File

@ -119,21 +119,19 @@ func Configure() error {
return err
}
case "ubuntu":
aa.Tunables["libexec"] = []string{"/{usr/,}libexec"}
if err := setLibexec(); err != nil {
return err
}
if err := paths.New("dists/ubuntu/trash").CopyTo(RootApparmord.Join("abstractions", "trash")); err != nil {
return err
}
case "debian", "whonix":
case "debian", "ubuntu", "whonix":
aa.Tunables["libexec"] = []string{"/{usr/,}libexec"}
if err := setLibexec(); err != nil {
return err
}
if err := paths.New("dists/ubuntu/abstractions/trash").CopyTo(RootApparmord.Join("abstractions", "trash")); err != nil {
return err
}
if Distribution == "ubuntu" {
break
}
for _, dirname := range []string{"abstractions", "tunables"} {
files, err := filepath.Glob("dists/debian/" + dirname + "/*")
if err != nil {