From df501e7afa43e2f27bf2b9fa4672e4bb0b479466 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Tue, 3 Jan 2023 18:42:51 +0000 Subject: Permit access to /tmp dbus socket After 6e48c317 the test-apparmor-activation test fails as it can no longer access the dbus socket in /tmp. This commit updates the apparmor profile used within the test (cherry picked from commit 9950464761f0c44e08fb93155ca6e7f4b1d8a31f) (cherry picked from commit 849382fe6daaf06b99269410091aa96f718f346a) --- test/data/dbus-installed-tests.aaprofile.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/data/dbus-installed-tests.aaprofile.in b/test/data/dbus-installed-tests.aaprofile.in index 7a65282a..edb793c1 100644 --- a/test/data/dbus-installed-tests.aaprofile.in +++ b/test/data/dbus-installed-tests.aaprofile.in @@ -32,6 +32,7 @@ # We aren't really confining this process seriously; allow most things. /** mrix, /tmp/dbus-daemon-test.*/{,**} w, + /tmp/dbus-* w, @{sys}/kernel/security/apparmor/** w, dbus (send, receive, bind), network, @@ -44,6 +45,7 @@ #include /** mrix, + /tmp/dbus-* w, @{sys}/kernel/security/apparmor/** w, dbus (send, receive, bind), network, @@ -62,6 +64,7 @@ #include /** mrix, + /tmp/dbus-* w, @{sys}/kernel/security/apparmor/** w, dbus, network, @@ -88,6 +91,7 @@ #include /** mrix, + /tmp/dbus-* w, @{sys}/kernel/security/apparmor/** w, dbus (send, receive, bind), network, -- cgit v1.2.1