[apparmor] [patch] Add a test_multi testcase for dbus eavesdrop

Christian Boltz apparmor at cboltz.de
Tue Nov 1 21:38:16 UTC 2016


Hello,

$subject.

The log line (with a different profile=...) was sitting around on my
disk since a year, so let's do something useful with it ;-)


[ testcase-dbus-eavesdrop.diff ]

=== added file 'libraries/libapparmor/testsuite/test_multi/testcase_dbus_07.err'
=== added file 'libraries/libapparmor/testsuite/test_multi/testcase_dbus_07.in'
--- libraries/libapparmor/testsuite/test_multi/testcase_dbus_07.in      1970-01-01 00:00:00 +0000
+++ libraries/libapparmor/testsuite/test_multi/testcase_dbus_07.in      2016-11-01 21:16:00 +0000
@@ -0,0 +1,1 @@
+Jul 31 17:10:35 dbusdev-saucy-amd64 dbus[1692]: apparmor="DENIED" operation="dbus_method_call"  bus="session" name="org.freedesktop.DBus" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="Hello" mask="eavesdrop" pid=2922 profile="/usr/sbin/whatever" peer_profile="unconfined"

=== added file 'libraries/libapparmor/testsuite/test_multi/testcase_dbus_07.out'
--- libraries/libapparmor/testsuite/test_multi/testcase_dbus_07.out     1970-01-01 00:00:00 +0000
+++ libraries/libapparmor/testsuite/test_multi/testcase_dbus_07.out     2016-11-01 21:16:09 +0000
@@ -0,0 +1,13 @@
+START
+File: testcase_dbus_07.in
+Event type: AA_RECORD_DENIED
+Operation: dbus_method_call
+Denied Mask: eavesdrop
+Profile: /usr/sbin/whatever
+Peer profile: unconfined
+Name: org.freedesktop.DBus
+PID: 2922
+DBus bus: session
+DBus path: /org/freedesktop/DBus
+DBus interface: org.freedesktop.DBus
+DBus member: Hello

=== added file 'libraries/libapparmor/testsuite/test_multi/testcase_dbus_07.profile'
--- libraries/libapparmor/testsuite/test_multi/testcase_dbus_07.profile 1970-01-01 00:00:00 +0000
+++ libraries/libapparmor/testsuite/test_multi/testcase_dbus_07.profile 2016-11-01 21:20:50 +0000
@@ -0,0 +1,4 @@
+/usr/sbin/whatever {
+  dbus eavesdrop bus=session,
+
+}



Regards,

Christian Boltz
-- 
Some gone-crazy stupid laywer filled tags with *PAGES* of license
restriction. Overwhelming mass of data made fontlinge_base believe
the font to be broken.
- increased limits
- going to get a gun   [Ratti in fontlinge-cvs]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20161101/4b31f932/attachment-0001.pgp>


More information about the AppArmor mailing list