Hello,

parser/tst/simple_tests/profile/profile_ns_bad8.sd was added in r3376
(trunk) / r3312 (2.10 branch) and contains the profile name ':ns/t'
which misses the terminating ':' for the namespace.

Unfortunately the tools don't understand namespaces yet and just use the
full profile name. This also means this test doesn't fail as expected
when tested against the utils code.

This patch adds profile_ns_bad8.sd to the exception list of
test-parser-simple-tests.py.


I propose this patch for trunk and 2.10.


[ 72-parser-tests-namespace-profile-name.diff ]

=== modified file 'utils/test/test-parser-simple-tests.py'
--- utils/test/test-parser-simple-tests.py      2015-12-27 00:20:37 +0000
+++ utils/test/test-parser-simple-tests.py      2016-02-18 22:25:44 +0000
@@ -125,6 +125,7 @@
     'profile/flags/flags_bad_debug_3.sd',
     'profile/flags/flags_bad_debug_4.sd',
     'profile/simple_bad_no_close_brace4.sd',
+    'profile/profile_ns_bad8.sd',  # 'profile :ns/t' without terminating ':'
     'ptrace/bad_05.sd',  # actually contains a capability rule with invalid 
(ptrace-related) keyword
     'ptrace/bad_06.sd',  # actually contains a capability rule with invalid 
(ptrace-related) keyword
     'ptrace/bad_10.sd',  # peer with invalid regex




Regards,

Christian Boltz
-- 
If something is red you should always worry. That's way it is red.
[Thorsten Kukuk]

Attachment: signature.asc
Description: This is a digitally signed message part.

-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to