feat(tunable): add the new @{arch} variable.

This commit is contained in:
Alexandre Pujol 2024-09-10 18:49:33 +01:00
parent 9cd1939ddc
commit 7f594d51b5
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
12 changed files with 4 additions and 10 deletions

View file

@ -32,6 +32,7 @@ func NewAppArmorProfile() *AppArmorProfileFile {
func DefaultTunables() *AppArmorProfileFile {
return &AppArmorProfileFile{
Preamble: Rules{
&Variable{Name: "arch", Values: []string{"x86_64", "amd64", "i386"}, Define: true},
&Variable{Name: "bin", Values: []string{"/{,usr/}{,s}bin"}, Define: true},
&Variable{Name: "c", Values: []string{"[0-9a-zA-Z]"}, Define: true},
&Variable{Name: "etc_ro", Values: []string{"/{,usr/}etc/"}, Define: true},