build: update build for new bin & lib variables

This commit is contained in:
Alexandre Pujol 2023-07-09 15:09:32 +01:00
parent 64146be05a
commit 1f75dc9956
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 3 additions and 24 deletions

View file

@ -9,7 +9,6 @@ import (
"strings"
"github.com/arduino/go-paths-helper"
"github.com/roddhjav/apparmor.d/pkg/aa"
"golang.org/x/exp/slices"
)
@ -48,17 +47,6 @@ func getSupportedDistribution() string {
return id
}
func setLibexec(libexec string) error {
aa.Tunables["libexec"] = []string{libexec}
file, err := RootApparmord.Join("tunables", "multiarch.d", "apparmor.d").Append()
if err != nil {
return err
}
defer file.Close()
_, err = file.WriteString(`@{libexec}=` + libexec)
return err
}
func copyTo(src *paths.Path, dst *paths.Path) error {
files, err := src.ReadDirRecursiveFiltered(nil, paths.FilterOutDirectories())
if err != nil {