mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-29 22:35:15 +01:00
feat(aa-log): update default tunables according to guideline.
This commit is contained in:
parent
5516eef952
commit
7273bde534
2 changed files with 6 additions and 6 deletions
|
@ -28,11 +28,11 @@ func DefaultTunables() *AppArmorProfile {
|
||||||
return &AppArmorProfile{
|
return &AppArmorProfile{
|
||||||
Preamble: Preamble{
|
Preamble: Preamble{
|
||||||
Variables: []Variable{
|
Variables: []Variable{
|
||||||
{"bin", []string{"/{usr/,}{s,}bin"}},
|
{"bin", []string{"/{,usr/}{,s}bin"}},
|
||||||
{"lib", []string{"/{usr/,}lib{,exec,32,64}"}},
|
{"lib", []string{"/{,usr/}lib{,exec,32,64}"}},
|
||||||
{"multiarch", []string{"*-linux-gnu*"}},
|
{"multiarch", []string{"*-linux-gnu*"}},
|
||||||
{"user_share_dirs", []string{"/home/*/.local/share"}},
|
{"user_share_dirs", []string{"/home/*/.local/share"}},
|
||||||
{"etc_ro", []string{"/{usr/,}etc/"}},
|
{"etc_ro", []string{"/{,usr/}etc/"}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,11 +19,11 @@ func TestDefaultTunables(t *testing.T) {
|
||||||
want: &AppArmorProfile{
|
want: &AppArmorProfile{
|
||||||
Preamble: Preamble{
|
Preamble: Preamble{
|
||||||
Variables: []Variable{
|
Variables: []Variable{
|
||||||
{"bin", []string{"/{usr/,}{s,}bin"}},
|
{"bin", []string{"/{,usr/}{,s}bin"}},
|
||||||
{"lib", []string{"/{usr/,}lib{,exec,32,64}"}},
|
{"lib", []string{"/{,usr/}lib{,exec,32,64}"}},
|
||||||
{"multiarch", []string{"*-linux-gnu*"}},
|
{"multiarch", []string{"*-linux-gnu*"}},
|
||||||
{"user_share_dirs", []string{"/home/*/.local/share"}},
|
{"user_share_dirs", []string{"/home/*/.local/share"}},
|
||||||
{"etc_ro", []string{"/{usr/,}etc/"}},
|
{"etc_ro", []string{"/{,usr/}etc/"}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue