build: improve support for aa 5.0
This commit is contained in:
parent
2bb42bfca2
commit
57251820e1
2 changed files with 13 additions and 2 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
brave
|
brave
|
||||||
chrome
|
chrome
|
||||||
chromium
|
chromium
|
||||||
|
cockpit-desktop
|
||||||
element-desktop
|
element-desktop
|
||||||
epiphany
|
epiphany
|
||||||
firefox
|
firefox
|
||||||
|
|
@ -29,8 +30,8 @@ unix-chkpwd
|
||||||
|
|
||||||
# Overwrite some profiles recently added in apparmor while being already present in apparmor.d for a while
|
# Overwrite some profiles recently added in apparmor while being already present in apparmor.d for a while
|
||||||
# They can be multiple justification for keeping our profiles here, or or the contrary using upstream ones:
|
# They can be multiple justification for keeping our profiles here, or or the contrary using upstream ones:
|
||||||
# - Keep ours: If they use abstractions, tunable, rules, and integration with apparmor.d that would break if using the upstream profile
|
# - Keep ours: If we/they use abstractions, tunable, rules, and integration with apparmor.d that would break if using the upstream profile
|
||||||
# - Drop ours: when upstream profiles is better
|
# - Drop ours: when upstream profiles is better (see pkg/prebuild/prepare/configure.go)
|
||||||
fusermount3
|
fusermount3
|
||||||
lsblk
|
lsblk
|
||||||
lsusb
|
lsusb
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ package prepare
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/roddhjav/apparmor.d/pkg/prebuild"
|
"github.com/roddhjav/apparmor.d/pkg/prebuild"
|
||||||
)
|
)
|
||||||
|
|
@ -92,6 +93,15 @@ func (p Configure) Apply() ([]string, error) {
|
||||||
if err := removeFiles(remove); err != nil {
|
if err := removeFiles(remove); err != nil {
|
||||||
return res, err
|
return res, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @{pci_bus} was upstreamed in 5.0
|
||||||
|
path := prebuild.RootApparmord.Join("tunables/multiarch.d/system")
|
||||||
|
out, err := path.ReadFileAsString()
|
||||||
|
if err != nil {
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
out = strings.ReplaceAll(out, "@{pci_bus}=pci@{hex4}:@{hex2}", "")
|
||||||
|
return res, path.WriteFile([]byte(out))
|
||||||
}
|
}
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue