[apparmor] [patch] Add simple_tests/profile/profile_ns_bad8.sd to utils test exception list
Christian Boltz
apparmor at cboltz.de
Thu Feb 18 22:38:45 UTC 2016
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]
-------------- 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/20160218/db6ca03b/attachment.pgp>
More information about the AppArmor
mailing list