apparmor/parser/tst/simple_tests
John Johansen e087db57b2 Allow the 'file' keyword to be optionally used on file rules.
Add the optional 'file' keyword to the language/grammer.  The main reason
for doing this is to support false token injection.  Which is needed
to move towards the parser being broken out into an api that can be
used to parse individual rule types, separate from parsing the whole file.

Since we are adding the token to the grammar expose it to userspace with
the 'file' keyword.  While not needed it helps bring consistency, as all
the other rule types start with a keyword (capability, network, rlimit, ...).

Also allow the bare keyword to be used to represent allowing all file
operations, just as with network and capability.  Domain transitions are
defaulted to ix.  Thus

  file,

is equivalent to

  /** rwlkmix,

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Kees Cook <kees@ubuntu.com>
2012-02-16 08:06:04 -08:00
..
capability Remove setting of capabilities from the syntax 2012-02-16 08:04:04 -08:00
change_hat as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
change_profile Fix change_profile so that it works with regular expressions (lpn390810) 2009-07-23 21:18:37 +00:00
conditional Rearrange tests into subdirectories, so that it is easier to see what tests 2009-07-23 07:42:57 +00:00
file Allow the 'file' keyword to be optionally used on file rules. 2012-02-16 08:06:04 -08:00
include_tests include *.dpkg-bak in files to ignore 2010-02-16 12:56:04 -08:00
includes as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
includes-preamble Move preamble inclusions to a different directory since it was breaking 2008-11-25 19:05:40 +00:00
network as ACKed on IRC, drop the unused $Id$ tags everywhere 2010-12-20 12:29:10 -08:00
profile Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00
rewrite Allow for a location to alias to multiple locations. Ie. 2010-02-12 13:51:27 -08:00
vars Bah, fix up screwed up testcase. 2011-03-29 02:46:09 -07:00
xtrans mark parser/tst/simple_tests/xtrans/minimize-x-conflict.sd as "TODO" and hook up parser/tst/Makefile "clean" to parser/Makefile "clean" rule 2010-12-20 13:44:14 -08:00
readme Add missing files from my last 11 patches as I forgot to do bzr add before 2010-12-20 13:18:36 -08:00

Directory for auto generated x-transition tests