feat(aa-log): add support for the sbin variable.
This commit is contained in:
parent
7b55b351ef
commit
1c499183f2
2 changed files with 3 additions and 2 deletions
|
|
@ -67,7 +67,8 @@ var (
|
|||
`/att/[^/@]+`, `@{att}/`,
|
||||
`/usr/lib(32|64|exec)`, `@{lib}`,
|
||||
`/usr/lib`, `@{lib}`,
|
||||
`/usr/(bin|sbin)`, `@{bin}`,
|
||||
`/usr/sbin`, `@{sbin}`,
|
||||
`/usr/bin`, `@{bin}`,
|
||||
`(x86_64|amd64|i386|i686)`, `@{arch}`,
|
||||
`@{arch}-*linux-gnu[^/]?`, `@{multiarch}`,
|
||||
`/usr/etc/`, `@{etc_ro}/`,
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ func TestAppArmorEvents(t *testing.T) {
|
|||
want: AppArmorLogs{
|
||||
{
|
||||
"apparmor": "ALLOWED",
|
||||
"profile": "@{bin}/httpd2-prefork//vhost_foo",
|
||||
"profile": "@{sbin}/httpd2-prefork//vhost_foo",
|
||||
"operation": "rename_dest",
|
||||
"name": "@{HOME}/foo.bar.in/httpdocs/apparmor/images/test/image 1.jpg",
|
||||
"comm": "httpd2-prefork",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue