Commit graph

1650 commits

Author SHA1 Message Date
Steve Beattie
90c9b5c0cd This patch fixes the apparmor parser tst Makefile to not use popd/pushd
bashisms which were in place to get around PWD not getting set
correctly. Instead, fix the simple.pl script to call pwd directly.
Based on feedback from PLD/Arkadiusz Miskiewicz <arekm@maven.pl>.
2006-12-15 08:10:25 +00:00
Steve Beattie
5f65fbccea Fix based on patch from PLD/Arkadiusz Miskiewicz <arekm@maven.pl> to
make the initscript more likely to function in shells other than bash.
2006-12-12 10:54:44 +00:00
Steve Beattie
2f3695b0c7 Add #defines for AUDIT_WRITE and AUDIT_CONTROL as older kernel headers (suse
9.3 era) don't define these.
2006-11-20 05:26:25 +00:00
Steve Beattie
6271e1a510 This patch converts the call to fdopendir() to fclose(), opendir(), as
the former isn't supported on glibc before glibc 2.4 (SL10.0 and prior,
Annvix, etc.). I dislike the change because fdopendir() does exactly
what I want, and converting to straight opendir() introduces a small
race window, though paths in question should be under administrator
control anyway.
2006-11-20 05:20:16 +00:00
Dominic Reynolds
e456884095 More translation updates. 2006-11-20 04:48:27 +00:00
Dominic Reynolds
ddc0cf76aa Updates from translation team. 2006-11-19 16:43:09 +00:00
Steve Beattie
4f16824434 This patch makes it so that translations added to po/ directories are
automatically added to the set of languages to be built and installed
unless they are explicitly added to the set of disabled translations.
This eliminates the need to manually add a lang to the Makefile when a
new translation is submitted (svn add will still be necessary).
2006-11-15 09:22:15 +00:00
Steve Beattie
a7fa3ccbdc https://bugzilla.novell.com/show_bug.cgi?id=214293
Make aaventd initscript depend on the service 'apparmor', as provided by
the boot.apparmor initscript.
2006-11-10 12:09:07 +00:00
Steve Beattie
af843fd0ac Dur, tyop. 2006-11-08 11:23:02 +00:00
Steve Beattie
b9820c408c Add changlog for ddrewelow's translation updates. 2006-11-08 11:03:58 +00:00
Steve Beattie
6b54cce437 This patch removes using the libcap-devel capability header, and only
uses the linux kernel definitions of them.

(It also adds to the simple capbilities regression tests verifying the
parser can parse the new audit capiability names.)
2006-11-08 10:59:09 +00:00
David J Drewelow
504d5cd2c0 added new po files to LANG 2006-11-08 10:50:00 +00:00
John Johansen
facf7569dc add the ability to specify the linux audit_write and audit_control capabilities 2006-11-08 10:43:11 +00:00
David J Drewelow
be21bcaf81 updated files pulled from LCN repository 2006-11-08 10:33:48 +00:00
Steve Beattie
23605a1d2e /lib/lsb/init-functions on SUSE provides the sh killproc() function; use
it instead to make cross-platform compatability easier.
2006-11-06 10:50:06 +00:00
Steve Beattie
af33afe8f7 Convert the rest of the packages to symlinking in the common directory
so that 'make dist' will work.
2006-11-04 21:34:47 +00:00
Steve Beattie
63712f92db * Sat Oct 28 2006 - olh@suse.de
- boot.apparmor should start after boot.localfs (#215156)
2006-10-31 15:33:10 +00:00
Steve Beattie
34437da2a3 Eliminate obsolete /subdomain (#160020)
Also add some history to the changelog in the specfile, clean up some
whitespace issues, eliminate no longer needed bogus LC_MESSAGES dir to
work around SUSE autobuild, seems to have been addressed.
2006-10-12 18:36:43 +00:00
Steve Beattie
398ef08bf4 This patch adds support for including all the files within a directory
by naming the directory (e.g. #include </etc/apparmor.d/abstractions>).
It will skip over dotfiles and as well as subdirectories. It is intended
to make scripting and packaging easier, as the including profile will
not need to know explicitly all of the names to include.

Long term, rather than hardcode that dotfiles will be skipped, it should
be configurable via /etc/apparmor.d/subdomain what patterns of files
should be skipped; genprof/logprof should also honor this setting. The
code could be reused as I'd like to make the parser just take a directory
on the command line rather than being fed profiles one at a time; again
it would skip files based on these same patterns.

This patch also eliminates some dead code in the include processing, as
well as replaces a couple of undersized fixed-size buffer (PATH_MAX is
4095 on linux, buffer is not overflowable due to use of strncpy/snprintf)
with dynamically allocated ones.
2006-10-10 21:36:10 +00:00
Steve Beattie
84a0136a88 Add a new testcase for #include statements that are on the same line as
file rules.
2006-09-28 16:47:11 +00:00
Dominic Reynolds
488f7fcc89 Disabled ar.po language as the po file in suse-i18n contains errors that
cause msgfmt and the build to fail.
2006-09-26 19:02:29 +00:00
Dominic Reynolds
9d3ae5ec8a Added/updated po files from lcn repo:
https://forgesvn1.novell.com/svn/suse-i18n
2006-09-26 18:32:52 +00:00
Dominic Reynolds
ce4ae3f281 Updated error message text - feedback from proofreaders. 2006-09-26 18:01:06 +00:00
Steve Beattie
aa470621a4 Check in an internationalization change that got missed in the 'm' mode
update.
2006-09-11 20:12:47 +00:00
John Johansen
97ef545dc3 revert interface version to v2 2006-08-04 21:30:34 +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
d70afadf6e change init script to use skipped_msg 2006-08-04 17:16:47 +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
John Johansen
4597d52ad3 test 2006-07-31 20:49:33 +00:00
John Johansen
2d820fb581 test 2006-07-31 20:45:34 +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
f13d422be0 Fixup a type-mismatch that happened to not cause crashes purely by
coincidence.
2006-05-18 16:26:28 +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
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
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
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
e3a5c27679 Remove some archaic cvsignore files. 2006-04-13 21:16:09 +00:00
Steve Beattie
bc9d0ee80b MOve the parser regression tests to the parser package itself. 2006-04-13 20:38:37 +00:00
Steve Beattie
36d643eea9 Remove obsolete parser testcases. The parser regression tests should
instead be placed here.
2006-04-12 16:49:58 +00:00
Steve Beattie
6b0de8f6bc Update keywords attribute, svn:ignore attribute, update Makefile to
point to the new location of the common/ dir.
2006-04-12 03:09:10 +00:00
Steve Beattie
6d3e74907d Import the rest of the core functionality of the internal apparmor
development tree (trunk branch). From svn repo version 6381.
2006-04-11 21:52:54 +00:00