[apparmor] [PATCH 4/4] tests: Update dbus.inc for af_unix mediation

Tyler Hicks tyhicks at canonical.com
Thu Sep 4 22:43:24 UTC 2014


Put a bare unix rule in the core gendbusprofile() function that all
dbus_*.sh use. We aren't interested in testing AF_UNIX mediation in the
dbus tests, since that's already done elsewhere, so we'll
unconditionally allow full AF_UNIX access to prevent test breakage
caused by any future changes in libdbus.

Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
---
 tests/regression/apparmor/dbus.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/regression/apparmor/dbus.inc b/tests/regression/apparmor/dbus.inc
index 539d128..038ccf2 100755
--- a/tests/regression/apparmor/dbus.inc
+++ b/tests/regression/apparmor/dbus.inc
@@ -13,6 +13,7 @@ gendbusprofile()
 ${__dbus_var_decl}
 $test {
   @{gen $test}
+  unix,
   $@
   signal receive peer=unconfined,
 }
-- 
2.1.0




More information about the AppArmor mailing list