Steve Beattie
8525087270
Merge in r1413 and r1418: report correct filename/line number on errors
...
in the parser.
r1413 Nominated-by: Kees Cook <kees@ubuntu.com>
r1413 Acked-By: Steve Beattie <sbeattie@ubuntu.com>
r1418 Nominated-by: Steve Beattie <sbeattie@ubuntu.com>
r1418 Acked-By: Kees Cook <kees@ubuntu.com>
r1418 Acked-By: John Johansen <john.johansen@canonical.com>
2010-06-25 12:58:17 -07:00
Steve Beattie
4094043011
Fix up some testcase description fields
2010-03-10 21:38:10 -08:00
John Johansen
04a872f927
Add some new profile flag tests to validate parsing of the new flags
...
controlling nameresolution.
2010-03-10 17:00:24 -08:00
Steve Beattie
ebe59ca483
Add a simple 'cx' mode testcase. I *think* I'm specifying it correctly.
2010-03-08 22:28:22 -08:00
Kees Cook
4f5686901b
include *.dpkg-bak in files to ignore
2010-02-16 12:56:04 -08:00
John Johansen
725328c209
Allow for a location to alias to multiple locations. Ie.
...
alias / -> /rofs,
alias / -> /rwfs,
2010-02-12 13:51:27 -08:00
Steve Beattie
09ced81ee5
Add debugging reporting for the other capability entry types (audit,
...
deny).
2010-01-07 15:48:14 -08:00
Kees Cook
b4c355e17e
actually add caching tests
2009-11-11 11:07:50 -08:00
Kees Cook
da6c9246f5
clear remaining $Id$ tags, since bzr does not suppor them
2009-11-11 10:44:26 -08:00
John Johansen
9e27a95b8e
Enable profile names with regular expressions. This requires a newer
...
kernel.
2009-07-30 06:09:19 +00:00
John Johansen
9c532c444b
Add a couple capability tests
2009-07-25 03:57:22 +00:00
Steve Beattie
ed86641695
Fixup testcase description.
2009-07-24 11:34:30 +00:00
Steve Beattie
f579d5efe6
Add a couple more situations around include suffix ignoring.
2009-07-24 11:11:39 +00:00
John Johansen
a7a1cb3827
test for ignored suffixes
...
Signed-Off-By: Kees Cook <kees.cook@canonical.com>
2009-07-24 07:38:10 +00:00
John Johansen
6afe6185be
Fix change_profile so that it works with regular expressions (lpn390810)
...
Change_profile was broken so that it couldn't parse expressions that
weren't path based or started with a variable. Furthermore if the name
held any expressions it was not hanlded correctly, as it was being passed
directly to dfa conversion without going through glob -> pcre conversion.
2009-07-23 21:18:37 +00:00
Steve Beattie
298b32e82e
Fix up another include test that was failing for the wrong reason.
2009-07-23 20:38:59 +00:00
Steve Beattie
f67f92652a
Fix up a couple of testcase includes that got broken in the reorg.
2009-07-23 20:27:54 +00:00
John Johansen
8a780d6f6d
Rearrange tests into subdirectories, so that it is easier to see what tests
...
are currently present.
2009-07-23 07:42:57 +00:00
John Johansen
a03d354ee5
Enable simple.py to traverse subdirectories. This will allow splitting
...
up the simple_tests/ dir into several subdirs, so they are easier
to manage.
2009-07-22 22:19:23 +00:00
Steve Beattie
a08658b46d
Add a couple of testcases around change_profile keyword and different
...
types of profile names.
2009-07-22 15:43:46 +00:00
Steve Beattie
27b8275d5a
Add parsing testcases:
...
- basic local (interior) profile support testcase
- basic deny rules test
2009-03-12 19:22:08 +00:00
Steve Beattie
edfa025814
Move preamble inclusions to a different directory since it was breaking
...
the test on including an entire directory.
Add some basic local profile tests.
2008-11-25 19:05:40 +00:00
Steve Beattie
2e5807b6c4
Add two tests for aliases within include files.
2008-11-24 19:53:36 +00:00
Steve Beattie
1e3e427263
Bleah, the previous code was killing the wrapper sh created by the
...
open("|") call, but not the actual apparmor_parser process itself.
2008-11-21 05:00:06 +00:00
Steve Beattie
a64d8142c9
Add a 2 minute (by default, configurable) timeout to each testcase, this
...
should prevent runaway apparmor_parser processes.
2008-11-20 23:22:43 +00:00
Steve Beattie
e1a2c27cfd
Update documentation on how many entries the 3rd stress test generates.
2008-11-20 17:38:38 +00:00
John Johansen
de3ed997a7
Add a test for dfa tree optimization. The test is a profile that could
...
OOM a machine without dfa tree optimization.
2008-11-20 17:27:32 +00:00
Steve Beattie
a8fea9babc
With jjohansen@suse.de's latest optimisation commits, this test case is
...
now feasible once again.
2008-11-20 17:27:01 +00:00
Steve Beattie
aed481debe
Add simple testcase for alias duplicate detection.
2008-11-16 00:49:43 +00:00
Steve Beattie
96e124bf8d
Bah, the last commit message was wrong; it added support for mixing
...
alias rules and variable declarations within the preamble of a profile.
This commit adds another testcase for alias rules; one in which there is
an overlapping pair of aliases. The parser parses it, but based on -dd
output, I don't believe it's treating it properly.
2008-11-14 16:46:16 +00:00
Steve Beattie
cc923edf3c
- Add AF_ISDN to filtered list of AF tags
...
- Restructure filter sed script to be shorter
- Add a make check target which is equiv to make tests
2008-11-14 16:25:44 +00:00
Steve Beattie
6b793b1a8b
Add a testcase for the alias handling
2008-11-13 23:48:11 +00:00
John Johansen
100ff7cabb
Update to allow external hats by specifying the hat keyword in front of
...
the profile name.
2008-06-09 12:00:42 +00:00
John Johansen
015df061e3
Named transition - but disabled due to a bug
2008-04-16 04:45:02 +00:00
John Johansen
831f2e252c
add missing tests
2008-04-06 18:57:05 +00:00
John Johansen
34f2c96700
let a profile set a tasks caps, similar to fscaps
2008-04-06 18:55:27 +00:00
John Johansen
d4c9f0ad0c
recommit namespace update to use :namespace:
2008-04-06 18:53:59 +00:00
John Johansen
c460dcc52f
update change_hats rules to generate rules for all hats
2008-04-06 18:52:47 +00:00
John Johansen
bbd31c70a1
change namespaces to use the :namespace: format
2008-04-05 05:46:06 +00:00
John Johansen
ec08477129
fix type on typename in cast bug
2008-04-05 04:57:51 +00:00
John Johansen
edda8c2604
add owner parser tests
2007-12-20 12:58:16 +00:00
John Johansen
ace86e6d01
fix overlapping x modifiers perm computation
2007-12-20 12:56:50 +00:00
John Johansen
40c3686041
remove old netdomain syntax
2007-11-16 09:34:01 +00:00
John Johansen
c841a140b3
make the use of flags= optional
2007-11-16 09:31:33 +00:00
John Johansen
20d5d20855
tests for pix exec mode
2007-11-16 09:28:30 +00:00
John Johansen
230b04231c
add pix transition mode
2007-11-16 09:27:34 +00:00
John Johansen
92a569fdb3
profile namespace tests
2007-11-16 09:22:49 +00:00
Steve Beattie
cfef502c54
Basic change_profile testcases, basic network rules testcases, testcases
...
around carat symbols and commas in file rules, and basic permission
modes first testcases from jjohansen@suse.de .
Acked-By: Steve Beattie <steve@nxnw.org>
2007-10-01 06:34:27 +00:00
Steve Beattie
815c103488
lock mode bit tests from jjohansen@suse.de
...
Also, make 'check' toplevel target be an alias for 'tests'
Acked-By: Steve Beattie <steve@nxnw.org>
2007-10-01 06:12:26 +00:00
Steve Beattie
4e0679ecc6
Append testcases from jjohansen@suse.de.
...
Acked-By: Steve Beattie <steve@nxnw.org>
2007-10-01 06:04:18 +00:00