apparmor/parser/tst/simple_tests/profile
Tyler Hicks 349b4a4ba1 parser: Allow the profile keyword to be used with namespaces
https://launchpad.net/bugs/1544387

Don't split namespaces from profile names using YACC grammar. Instead,
treat the entire string as a label in the grammer. The label can then be
split into a namespace and a profile name using the new parse_label()
function.

This fixes a bug that caused the profile keyword to not be used with a
label containing a namespace in the profile declaration.

Fixing this bug uncovered a bad parser test case at
simple_tests/profile/profile_ns_ok1.sd. The test case mistakenly
included two definitions of the :foo:unattached profile despite being
marked as expected to pass. I've adjusted the name of one of the
profiles to :foo:unattached2.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: John Johansen <john.johansen@canonical.com>
2016-02-18 15:58:06 -06:00
..
flags split flags_bad.sd 2015-06-08 22:22:07 +02:00
local Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
entry_mods_audit_ok1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
exploding_profile.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
profile_bad1.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profile_basic_named_ok1.sd Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
profile_basic_ok1.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profile_basic_ok2.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profile_ns_bad1.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profile_ns_bad2.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profile_ns_bad3.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profile_ns_bad4.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profile_ns_bad5.sd parser: Allow the profile keyword to be used with namespaces 2016-02-18 15:58:06 -06:00
profile_ns_bad6.sd parser: Allow the profile keyword to be used with namespaces 2016-02-18 15:58:06 -06:00
profile_ns_bad7.sd parser: Allow the profile keyword to be used with namespaces 2016-02-18 15:58:06 -06:00
profile_ns_bad8.sd parser: Allow the profile keyword to be used with namespaces 2016-02-18 15:58:06 -06:00
profile_ns_named_ok1.sd Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
profile_ns_named_ok2.sd Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
profile_ns_named_ok3.sd Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
profile_ns_ok1.sd parser: Allow the profile keyword to be used with namespaces 2016-02-18 15:58:06 -06:00
profile_ns_ok2.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profile_ns_ok3.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profile_ns_ok4.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profiles_dupe_1.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profiles_dupe_2.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profiles_dupe_3.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
re_named_ok1.sd Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
re_named_ok2.sd Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
re_named_ok3.sd Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
re_named_ok4.sd Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
re_named_ok5.sd Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
re_ok1.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
re_ok2.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
re_ok3.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
re_ok4.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
re_ok5.sd as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
simple_bad_no_close_brace1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
simple_bad_no_close_brace2.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
simple_bad_no_close_brace3.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
simple_bad_no_close_brace4.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
simple_bad_no_opening_brace1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
simple_bad_no_program_name.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
simple_bad_nomode.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
simple_named_ok_no_rules.sd Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
simple_ok_no_rules.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00