apparmor/parser/tst/simple_tests/file
John Johansen 80285dfafb parser: fix compilation failure of deny link rules
BugLink: http://bugs.launchpad.net/bugs/1433829

The apparmor_parser fails to compile deny rules with only link
permissions.

  Eg.
       deny /f l,
       deny l /f,
       deny link /f -> /d,

Will all fail to compile with the following assert

  apparmor_parser: aare_rules.cc:99: Node* convert_file_perms(int, uint32_t, uint32_t, bool): Assertion `perms != 0' failed.

NOTE: this is a minimal patch a bigger patch that cleans-up and separates
      and reorganizes file, link, exec, and change_profile rules is needed

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Steve Beattie <steve@nxnw.org>
2015-03-23 11:25:48 -07:00
..
allow add keyword 'other' vim syntax support, plus language parsing tests 2014-01-24 11:17:23 -08:00
file Parser: fix error when using regex profile names in IPC rules 2014-10-01 15:54:30 -07:00
owner parser: add basic alternation tests, along with their file and owner 2013-12-03 16:34:17 -08:00
bad_append_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
bad_append_2.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
bad_comma_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
bad_embedded_0_1.sd And the related patch to fix globbing for af_unix abstract names 2015-02-12 10:19:16 -08:00
bad_embedded_0_2.sd And the related patch to fix globbing for af_unix abstract names 2015-02-12 10:19:16 -08:00
bad_embedded_0_3.sd And the related patch to fix globbing for af_unix abstract names 2015-02-12 10:19:16 -08:00
bad_embedded_spaces_1.sd Parser: fix error when using regex profile names in IPC rules 2014-10-01 15:54:30 -07:00
bad_lock_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
bad_re_brace_1.sd parser: add test case for empty character class regex 2013-12-03 15:55:54 -08:00
bad_re_brace_2.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
bad_re_brace_3.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
dos_line_endings.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
front_perms_ok_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_2.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_3.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_4.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_5.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_alternations_1.sd parser: add basic alternation tests, along with their file and owner 2013-12-03 16:34:17 -08:00
ok_alternations_2.sd parser: add basic alternation tests, along with their file and owner 2013-12-03 16:34:17 -08:00
ok_alternations_3.sd parser: remove length restriction in convert_aaregex_to_pcre usage 2013-12-16 01:15:17 -08:00
ok_append_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_audit_deny_link.sd parser: fix compilation failure of deny link rules 2015-03-23 11:25:48 -07:00
ok_carat_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_carat_2.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_comma_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_comma_2.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_deny_1.sd parser - add simple file deny rule tests 2013-10-11 22:33:05 -07:00
ok_deny_2.sd parser - add simple file deny rule tests 2013-10-11 22:33:05 -07:00
ok_deny_3.sd parser - add simple file deny rule tests 2013-10-11 22:33:05 -07:00
ok_deny_4.sd parser - add simple file deny rule tests 2013-10-11 22:33:05 -07:00
ok_deny_link.sd parser: fix compilation failure of deny link rules 2015-03-23 11:25:48 -07:00
ok_embedded_spaces_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_embedded_spaces_2.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_embedded_spaces_3.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_embedded_spaces_4.sd Parser: fix error when using regex profile names in IPC rules 2014-10-01 15:54:30 -07:00
ok_inv_char_class.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_link_1.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_link_2.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_link_3.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_lock_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_mmap_1.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_mmap_2.sd Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
ok_octal_1.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_octal_2.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_other_1.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_other_2.sd add keyword 'other' vim syntax support, plus language parsing tests 2014-01-24 11:17:23 -08:00
ok_other_3.sd add keyword 'other' vim syntax support, plus language parsing tests 2014-01-24 11:17:23 -08:00
ok_quoted_1.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_quoted_2.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_quoted_3.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_quoted_4.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_quoted_5.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00
ok_slashquote_1.sd parser: add additional language tests to get wider test coverage 2014-01-17 23:20:51 -08:00