[apparmor] [patch] Add some simple_tests (dbus and bare file rules)

Christian Boltz apparmor at cboltz.de
Thu Jan 7 20:54:40 UTC 2016


Hello,

$subject ;-)


[ more-simple_tests.diff ]

=== added file 'parser/tst/simple_tests/dbus/ok_bind_2.sd'
--- parser/tst/simple_tests/dbus/ok_bind_2.sd   1970-01-01 00:00:00 +0000
+++ parser/tst/simple_tests/dbus/ok_bind_2.sd   2015-10-27 22:55:01 +0000
@@ -0,0 +1,7 @@
+#
+#=DESCRIPTION simple dbus implicit bind acceptance test with deny keyword
+#=EXRESULT PASS
+
+profile a_profile {
+  deny dbus name=(SomeService),
+}

=== added file 'parser/tst/simple_tests/file/ok_bare_1.sd'
--- parser/tst/simple_tests/file/ok_bare_1.sd   1970-01-01 00:00:00 +0000
+++ parser/tst/simple_tests/file/ok_bare_1.sd   2015-10-27 22:50:19 +0000
@@ -0,0 +1,7 @@
+#
+#=Description bare file rule
+#=EXRESULT PASS
+#
+/usr/bin/foo {
+  file,
+}

=== added file 'parser/tst/simple_tests/file/ok_bare_2.sd'
--- parser/tst/simple_tests/file/ok_bare_2.sd   1970-01-01 00:00:00 +0000
+++ parser/tst/simple_tests/file/ok_bare_2.sd   2015-10-27 22:50:36 +0000
@@ -0,0 +1,7 @@
+#
+#=Description bare file rule
+#=EXRESULT PASS
+#
+/usr/bin/foo {
+  deny file,
+}



Regards,

Christian Boltz
-- 
Und da ich falsch geschrieben habe, was ja flasch ist, da faslch richtig
geschrieben ja richtig und nicht falcsh ist, hab ich durch das richtige
schreiben einen Fehler gemacht und damit das Wort flasch richtig ver-
wendet, da es ja flashc ist, was hier nicht richtig, aber passend ist.
[Till Potinius]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20160107/9a3bee82/attachment.pgp>


More information about the AppArmor mailing list