apparmor/libraries/libapparmor
Christian Boltz 3d3667f38b
move path log event handling to hashlog
In logparser.py parse_event_for_tree, convert path handling to hashlog.
While on it, include 'owner' as part of hashlog so that aa.py doesn't
need to guess.

Also switch to a simple for loop instead of using log_str_to_mode() from
aamode.py to convert denied_mask to hasher keys (which would have been
needed to allow merging of several log events for the same path anyway).
Note that the check for 'mrawlk' (intentionally without 'x') is more
strict than the validate_log_mode(), but it should still cover all file
permissions. (validate_log_mode() also allows things like 'Px', which
we'll never hit in a logfile.)

In aa.py collapse_log() update the handling of path events to match the
additional [owner] key in hashlog/prelog. This makes the owner detection
in collapse_log() superfluous.

In aa.py handle_children(), remove 'path' handling from the 'path' or
'exec' section, and add an 'if True:' to avoid lots of whitespace
changes.

In aamode.py, drop the now unused split_mode() function, and
AA_OTHER_REMOVE() that was only used by split_mode().

Finally, remove sample log events with null-* hats from the list of
known failures in test-libapparmor-test_multi.py (we no longer filter
out null-* hats), and fix whitespace in two expected profiles.
2019-05-02 01:10:18 +02:00
..
doc all: Use HTTPS links for apparmor.net 2018-09-13 16:41:32 +00:00
include all: Use HTTPS links for apparmor.net 2018-09-13 16:41:32 +00:00
m4 libapparmor: Check for podchecker during configure stage 2014-11-17 21:19:55 -06:00
src libapparmor: Get rid of unnecessary variable 2019-03-13 02:46:09 +00:00
swig Replace deprecated assertEquals with assertEqual 2019-02-26 21:27:00 +01:00
testsuite move path log event handling to hashlog 2019-05-02 01:10:18 +02:00
AUTHORS libraries/libapparmor/: more license cleanups, adjust my email address 2011-02-23 14:02:45 -08:00
autogen.sh libapparmor: Force libtoolize to replace existing files 2016-09-14 12:48:58 -05:00
ChangeLog move libapparmor into the libraries directory 2008-05-19 22:48:31 +00:00
configure.ac libapparmor: fix reallocarray FTBFS w/older glibc 2018-04-18 21:08:03 -07:00
COPYING.LGPL move libapparmor into the libraries directory 2008-05-19 22:48:31 +00:00
INSTALL move libapparmor into the libraries directory 2008-05-19 22:48:31 +00:00
Makefile.am libapparmor: more Makefile cleanups 2015-01-26 15:39:10 -08:00
NEWS move libapparmor into the libraries directory 2008-05-19 22:48:31 +00:00
README Re-implement aa-notify in Python (Closes: #16) 2019-04-21 18:37:10 +03:00

What little documentation exists is in include/aalogparse.h.

Please file bugs using https://bugs.launchpad.net/apparmor/+filebug