build: set default att to "" when not enabled.
It fixes various issues with multiple / that are not collapsed in they canonical form in file rules See https://gitlab.com/apparmor/apparmor/-/issues/450#note_2158840105
This commit is contained in:
parent
4f9d2703d4
commit
7c6f776757
2 changed files with 2 additions and 4 deletions
|
|
@ -32,7 +32,6 @@ func (p ReAttach) Apply() ([]string, error) {
|
|||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
out = strings.ReplaceAll(out, "@{att}=/", "# @{att}=/")
|
||||
out = strings.ReplaceAll(out, "alias / -> //,", "#alias / -> //,")
|
||||
out = strings.ReplaceAll(out, `@{att}=""`, `# @{att}=""`)
|
||||
return res, path.WriteFile([]byte(out))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue