Commit graph

5872 commits

Author SHA1 Message Date
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
Seth Arnold
c0ffe84f43 Bug 168581 - readaccess to /proc/meminfo not granted to nscd -- add sysconf(3) files to abstractions/base 2006-05-01 17:34:59 +00:00
Seth Arnold
1be9dfacbc Bug 165191 - named can't write slave zones 2006-05-01 17:32:36 +00:00
Seth Arnold
8a767bce13 Add a dummy pipe profile in complain mode. Pipe is pretty flexible, so sysadmins should turn on AppArmor for pipe themselves. 2006-04-29 00:11:54 +00:00
Seth Arnold
f0d6ffa33a mdnsd writes to the console, thanks darix 2006-04-28 22:48:28 +00:00
Steve Beattie
0508ea0128 https://bugzilla.novell.com/show_bug.cgi?id=160330
This patch prevents the parser from segv'ing if neither of the expected
default profile directories exist (/etc/subdomain.d, /etc/apparmor.d).
A profile passed on the command line or via stdin will still load, so
long as -I/path/to/includes is passed for any relevant includes files.
2006-04-28 03:26:57 +00:00
Seth Arnold
543b642d1f Bug 159667 - Postfix SASL authentication fails with "no mechanism available" 2006-04-27 22:40:08 +00:00
Seth Arnold
71b487ad97 Bug 168581 - readaccess to /proc/meminfo not granted to nscd 2006-04-27 12:55:15 +00:00
Seth Arnold
8fc3074343 address the capabilities half of https://bugzilla.novell.com/show_bug.cgi?id=165170 -- remaining in this bug report is variables descriptions 2006-04-24 21:59:20 +00:00
Seth Arnold
2a2010c839 https://bugzilla.novell.com/show_bug.cgi?id=165116 2006-04-24 21:25:24 +00:00
Seth Arnold
eb6ca6797b A quick hack that will test if the running kernel supports PCRE or not, and bail out with a more informative error message if the policy being loaded requires additional kernel support 2006-04-18 17:15:05 +00:00
Steve Beattie
b04af48255 Update svn:ignore attributes on the utils/ directory. 2006-04-14 18:35:48 +00:00
Steve Beattie
16ce411178 [https://bugzilla.novell.com/show_bug.cgi?id=165177]
XFS appears to be more strict than the Linux vfs layer wrt whether a
process can chgrp a file when it's not the owner but still in the same
group -- XFS doesn't allow it and requires CAP_FOWNER instead.

This fix rorders the tests so that the chgrp operations occur before the
chown operations happen, avoiding the difference in requirements between
XFS and linux's vfs.
2006-04-14 18:11:55 +00:00