fix(profile): workaround in apparmor issue for attached path.

See https://gitlab.com/apparmor/apparmor/-/issues/450
Fix #815
This commit is contained in:
Alexandre Pujol 2025-08-17 11:57:36 +02:00
parent 52e9ae9fd6
commit 4e70cb4c91
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
8 changed files with 7 additions and 6 deletions

View file

@ -33,5 +33,6 @@ func (p ReAttach) Apply() ([]string, error) {
return res, err
}
out = strings.ReplaceAll(out, "@{att}=/", "# @{att}=/")
out = strings.ReplaceAll(out, "alias / -> //,", "#alias / -> //,")
return res, path.WriteFile([]byte(out))
}