Commit graph

7760 commits

Author SHA1 Message Date
John Johansen
912cb42ccb fix allocations for the audit subsystem that must be GFP_ATOMIC 2006-08-30 00:39:07 +00:00
John Johansen
b1a492d2fe fix error where a confined parent could take control of an unconfined child by getting the unconfined child to ptrace it 2006-08-30 00:38:15 +00:00
John Johansen
f5c23403a7 fix error that could cause oops when an error occured in dentry translation with no inode 2006-08-30 00:36:48 +00:00
John Johansen
ea7c6f7e8b fix error where name lookup was not properly propogating failure (errors) 2006-08-30 00:34:38 +00:00
John Johansen
b6430e3f83 properly set return code for changehat interface 2006-08-30 00:33:36 +00:00
John Johansen
7b15ddcef5 revert to using auditsd tag instead of auditaa because this is what is in suse kernels 2006-08-30 00:31:36 +00:00
John Johansen
e53c2f9db3 revert back to using d_path instead of d_path_flags 2006-08-30 00:30:46 +00:00
John Johansen
f2f5d972e4 Replace some minor uses of subdomain with apparmor 2006-08-30 00:29:49 +00:00
John Johansen
a9bd7afd94 bring Makefile up to latest version 2006-08-30 00:29:10 +00:00
John Johansen
1d152eecb8 Import nextgen branch of AppArmor 2006-08-30 00:27:59 +00:00
John Johansen
145432c805 fork apparmor module to checkin next gen code base 2006-08-30 00:19:50 +00:00
Seth Arnold
770d7d521e crispin noticed that this profile includes a pointless Px domain transition 2006-08-21 22:11:47 +00:00
Dominic Reynolds
704e1e4d36 Initial checkin 2006-08-16 16:32:49 +00:00
Seth Arnold
f9df421131 Ralf Spenneberg fixup for make install target 2006-08-09 22:39:20 +00:00
Matt Barringer
be64d6bed4 Turned the uid=0 check back on. 2006-08-05 21:05:25 +00:00
John Johansen
39adc91bbb fix xattr regression test. variable perm was being modified as a side affect of called functions so it was passing the wrong perm to the tests. 2006-08-04 22:39:16 +00:00
John Johansen
97ef545dc3 revert interface version to v2 2006-08-04 21:30:34 +00:00
John Johansen
5c2fe819d8 fix prologue.inc previous patch was broken in porting so that profiles could not be generated 2006-08-04 21:27:38 +00:00
Tony Jones
5b0e1a3dd5 Initial checkin of kernel module.
Makefile will invoke Kbuild for external (out of tree) builds.
2006-08-04 19:07:32 +00:00
Seth Arnold
dfa966cbdc r3528@dhcp-81: root | 2006-08-02 16:39:14 -0700
fix 0-0 typo
2006-08-04 18:14:15 +00:00
Seth Arnold
087c48b35e r3527@dhcp-81: root | 2006-08-02 15:33:07 -0700
Fix up the m, U, and P stuff, and other misc fixes
2006-08-04 18:13:59 +00:00
John Johansen
c13b341fef add parser test files that I failed to add when the parser m and P patches where committed 2006-08-04 17:24:51 +00:00
John Johansen
c611d4cbf0 increase interface version for loading policy, due to the m and unsafe exec flags breaking compatabity with v2 policy 2006-08-04 17:22:19 +00:00
John Johansen
5a84323302 update boot prereq for suse 2006-08-04 17:20:46 +00:00
John Johansen
b96bd2cd3b update parser to use HAS_X macros 2006-08-04 17:20:16 +00:00
John Johansen
7f1df42d3e update regresssion test prologue.inc for m flag 2006-08-04 17:19:41 +00:00
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