build: use the same technique to disable upstream profile on all distribution.

Only enabled on Ubuntu & opensuse
This commit is contained in:
Alexandre Pujol 2024-06-04 19:52:06 +01:00
parent c40c3e1c98
commit 34973baaea
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 45 additions and 95 deletions

View file

@ -32,11 +32,16 @@ func init() {
builder.Register("dev")
switch cfg.Distribution {
case "opensuse":
builder.Register("abi3")
cfg.Overwrite = true
case "ubuntu":
if cfg.Release["VERSION_CODENAME"] == "noble" {
builder.Register("abi3")
cfg.Overwrite.Enabled = true
cfg.Overwrite = true
}
case "whonix":
cfg.Hide += `/etc/apparmor.d/abstractions/base.d/kicksecure
/etc/apparmor.d/home.tor-browser.firefox