Commit graph

7734 commits

Author SHA1 Message Date
John Johansen
2e0cfb276d add longpath test 2006-08-04 17:18:41 +00:00
John Johansen
d70afadf6e change init script to use skipped_msg 2006-08-04 17:16:47 +00:00
John Johansen
313c2a35ec This patch adds m support to the regression tests 2006-08-04 17:15:41 +00:00
John Johansen
3cb147e25c [https://bugzilla.novell.com/show_bug.cgi?id=172061]
This (updated) patch to trunk adds support for Px and Ux (toggle
bprm_secure on exec) in the parser, As requested, lowercase p and u
corresponds to an unfiltered environmnet on exec, uppercase will filter
the environment.  It applies after the 'm' patch.

As a side effect, I tried to reduce the use of hardcoded characters in
the debugging statements -- there are still a few warnings that have
hard coded letters in them; not sure I can fix them all.

This version issues a warning for every unsafe ux and issues a single
warning for the first 'R', 'W', 'X', 'L', and 'I' it encounters,
except when the "-q" or "--quiet" flag , "--remove" profile flag, or
"-N" report names flags are passed.  Unfortunately, it made the logic
somewhat more convoluted.  Wordsmithing improvements welcome.
2006-08-04 17:14:49 +00:00
John Johansen
cafbfe7cd3 [https://bugzilla.novell.com/show_bug.cgi?id=175388]
This (updated) patch to trunk adds the m flag to the parser language. The
m flag explicitly does -not- conflict with px, ux, or ix.

It does not add exec mmap as implicit to inherited execs, as it was
asserted that the module should do this.

I have not fixed up the testcases to match.
2006-08-04 17:14:06 +00:00
Dominic Reynolds
97593fb21b Changes to support new language features - exec modifiers Ux|Px and m
bit for mmap PROT_EXEC.
2006-08-04 16:38:22 +00:00
Dominic Reynolds
95ea812d91 Changes to support new language features - exec modifiers Ux|Px and m
bit for mmap PROT_EXEC.
2006-08-04 16:37:57 +00:00
John Johansen
4597d52ad3 test 2006-07-31 20:49:33 +00:00
John Johansen
2d820fb581 test 2006-07-31 20:45:34 +00:00
Dominic Reynolds
3b35618ccb remove test changes. 2006-07-31 19:45:49 +00:00
Dominic Reynolds
82811e139e Testing. 2006-07-31 19:38:28 +00:00
forgeuser2
f3acd28ceb Testing. 2006-07-31 19:36:31 +00:00
forgeuser2
b6f3dee92c Test. 2006-07-31 19:31:00 +00:00
forgeuser2
352a6c9584 Testing again. 2006-07-31 19:29:44 +00:00
forgeuser2
e0a5dd6758 A test commit 2006-07-31 19:24:07 +00:00
Steve Beattie
4db9519e28 Fix up warning on 64bit platforms 2006-06-21 04:55:48 +00:00
Steve Beattie
9249ffcd00 This patch adds two new make targets to the profiles package: 'check'
and 'check-install'. The 'check' target will attempt to run the profiles
in the working subversion directory (both in enabled/ and extras/
directories) through the apparmor_parser as a means of sanity checking
the profiles.

The 'check-install' target will also run the 'check' target, only
against the installed location, modifiable by DESTDIR and EXTRASDIR (to
match the behavior of the 'install' target). It also will run logprof
(with an empty logfile) on the installation location, as logprof and the
parser have differing ideas of what is a valid profile :-( .

Thus 'make install check-install DESTDIR=/some/path EXTRASDIR=/other/path'
will install the profiles into a location and cycle the parser and
logprof over the profiles in that

The 'check' target cannot run logprof as the subversion layout does not
conform to a hierarchy logprof can deal with. The limitations also mean
that logprof will not check the profiles in the extras/ directory.

There are other passable variables that impact the 'check' and
'check-install' targets:

  VERBOSE - setting this variable will emit the actual commands run,
	mostly useful for debugging where the implementation of 'check'
	has gone wrong.
  PARSER, LOGPROF - setting these with a path to a different parser or
  	logprof location will have the check targets use those version
	rather than the system utilities; e.g.
	"make check-install LOGPROF=../utils/logprof" to test a modified
	logprof in our current forge svn layout.
2006-06-05 16:39:29 +00:00
Matt Barringer
2c273e6bcc Added additional mode flags 2006-06-02 23:06:47 +00:00
Steve Beattie
8cdcb6f0ea Set properties on parser testfiles 2006-06-01 17:02:28 +00:00
Steve Beattie
8418f829dd Fix build warning due to netdomain rules being completely ignored. 2006-06-01 16:40:34 +00:00
Steve Beattie
865b21c761 Two changes:
* patch from SUSE autobuild team to not strip binaries
* convert rpm release for the parser and mod_apparmor packages to
  correspond to the svn repository number.
2006-05-31 22:38:30 +00:00
Steve Beattie
08a4b5ce52 Set svn keyword properties on a couple of missed files. 2006-05-31 21:44:14 +00:00
Steve Beattie
dd2d41bae8 Make the build process significantly quieter with respect to the unit
and regression tests to avoid developer confusion.
2006-05-31 21:30:50 +00:00
Steve Beattie
b1d35ce262 Set svn:keyword attributes on everything, kill Makefile rule for
ptrace_helper.c so that it gets the default compilation rules.
2006-05-19 17:32:14 +00:00
Steve Beattie
92c9c8732d [This commit is taken from commits 6391, 6401, and 6402 of the internal tree.]
tonyj:
- Verify long path (d_path) error checking. (6391)
- Better ptrace tests. (6401)
- Confined mount tests require cap_sys_admin to even get to the confined
  checks. (6402)
2006-05-19 16:50:17 +00:00
Seth Arnold
6fda1df1a6 Bug 175626 - /var/lib/ntp/etc/ntp.conf.iburst missing from ntpd profile 2006-05-18 21:32:29 +00:00
Steve Beattie
f13d422be0 Fixup a type-mismatch that happened to not cause crashes purely by
coincidence.
2006-05-18 16:26:28 +00:00
Seth Arnold
6c14a6b273 New version of the docs to reflect 'm', 'Ux', 'Px', language additions. 2006-05-16 23:55:00 +00:00
Seth Arnold
e70039f3d9 forgot to set the svn:keywords on the file. oops. 2006-05-15 17:40:24 +00:00
Matt Barringer
a8f4d4c478 Switched from using a BoxSizer to a SplitterWindow. Also fixed a few
bugs.
2006-05-12 20:40:11 +00:00
Matt Barringer
b67104703e Added "Search for this phrase" context menu, fixed node expansion bug,
fixed problem with right clicking clearing a selection
2006-05-10 01:45:49 +00:00
Matt Barringer
4b5f1ba83f Initial commit of profile editor code 2006-05-09 23:35:20 +00:00
Seth Arnold
49fce2d4e6 Remove NOVELL from Short-Descriptions; make the aaeventd have a unique (and meaningful) short-description. Replace some red hat initscript 'subdomain' with 'apparmor' 2006-05-09 18:01:05 +00:00
Matt Barringer
0b73d4d6aa Preparing to add the wxWidgets based profile editor 2006-05-05 23:20:17 +00:00
Seth Arnold
3ce2e3610c Bug 168035 - apparmor-profiles: lib.ld-2.2.so takes no care of x86_64 /lib/ld-2.4 -- s390x, ppc, ppc64 2006-05-05 17:48:20 +00:00
Seth Arnold
1270a03421 Bug 172670 - postfix doesn't deliver mails anymore after update from SLES9 2006-05-05 15:31:29 +00:00
Seth Arnold
ec3b80ca6a Bug 165170 - apparmor.d(5): missing documentation 2006-05-03 22:55:14 +00:00
Seth Arnold
daa4c2b1cb also document the post* profiles in the extras/README 2006-05-03 21:45:43 +00:00
Seth Arnold
0b7811057f oops, forgot to disable some of the other postfix helpers; postalias, postdrop, postmap, postqueue 2006-05-03 21:38:44 +00:00
Seth Arnold
feaeb486ec clean up the extras/README so that people can more easily see the point of the directory 2006-05-03 21:22:02 +00:00
Seth Arnold
ecb3d24bde remove all the complain mode flags from the postfix profiles (now in extras) 2006-05-03 20:41:27 +00:00
Seth Arnold
e5c47dfd15 eagle-eye darix spotted broken alternations in smtpd profile; the rules used to expand to /var/spool/postfixpublic/cleanup //public/cleanup now they expand to /var/spool/postfix/public/cleanup /public/cleanup 2006-05-03 20:33:59 +00:00
Seth Arnold
e2b220a59a force procmail to 'px' rather than 'ux' in the (now disabled) postfix profiles 2006-05-03 19:51:11 +00:00
Seth Arnold
a5bf394cc1 move squid from enabled to disabled; we've decided to turn it off too 2006-05-03 19:49:15 +00:00
Seth Arnold
d94da33747 move all the postfix programs to extras; we've decided to not turn them on by default 2006-05-03 19:48:45 +00:00
Seth Arnold
426a491f54 darix noticed I had forgotten the svn:keywords property on all my new files and cut-n-waste was blaming steve for all these files 2006-05-02 21:41:28 +00:00
Seth Arnold
437b53a557 Bug 170154 - squid dies when setting auth_param basic program /usr/sbin/pam_auth 2006-05-02 17:48:04 +00:00
Steve Beattie
84ff459a53 Default to using the parser in the parent directory, and build it if it
doesn't exist.
2006-05-02 17:19:50 +00:00
Steve Beattie
1b56f269dd This change does a few things:
- adds a distinct includes/ subdirectory, populated with a couple of
    files that test profiles can include. We purposefully choose to use
    a different directory structure than the shipped profile set so that
    changes to it will not break our tests.
  - modifies the existing test profiles to take advantage of the
    includes/ directory.
  - modifies tst/Makefile with pushd/popd to get around some pwd
    limitations in the parser (that need to be fixed).
2006-05-02 16:15:41 +00:00
Seth Arnold
9636ab4669 Bug 167798 - misc profile modifications from darix -- mlmmj, lighttpd, oidentd profiles in extras/, new postfix helpers in complain mode (enabled), split apart nameservice a little (non destructively), add new abstractions for python, ruby, and php5, add web-data and svn-repositories data-centric abstractions 2006-05-02 00:25:47 +00:00