Commit graph

9 commits

Author SHA1 Message Date
David J Drewelow
935e7eb32f Fixes (#310454) to support new audit log format and new libapparmor1. 2007-09-14 21:23:08 +00:00
Dominic Reynolds
b451a537c4 Update the eventd schema to support the mode_deny mode_req types
reported by the latest apparmor module in its rejection/permitting
messages.
2007-09-10 19:41:03 +00:00
David J Drewelow
fd1c72183b Updated sqlite db and related functions to support new parser and
libapparmor.
2007-08-20 15:07:13 +00:00
Jesse Michael
d8ae032328 used perltidy to clean up the formatting for the perl scripts in the
utils package and manually fixed some places where perltidy's
reformatting made it harder to read.  the options used were--

-i=4    # 4-space indentation
-l=0    # unlimited line length (for now)
-pt=2   # slightly tightened parens
-ce     # cuddled elses
-nolq   # don't outdent long quotes
-nsfs   # don't add spaces in front of semi-colons in for ( ) statements
-isbc   # only indent block comments that have whitespace in front of them
-otr    # don't place a break between a comma and an opening brace

the code will be refactored to make it possible to switch to using 
80-column line-breaks without resorting to really nasty formatting 
constructs.
2007-03-20 21:58:38 +00:00
Steve Beattie
ee85cc9f24 Add a chomp statement to prevent blank lines being emitted to
aa-eventd's logfile. Clean up some trailing spaces in the file.
2007-01-17 12:32:15 +00:00
Steve Beattie
51a676b3b4 This patch modifies the aa-eventd daemon to use the Date::Parse module
(TimeDate) package for parsing dates and fall back to using Date::Manip
if Date::Parse isn't available -- Date::Manip is more commonly available,
but is written solely in perl and is more general-purpose and heavyweight
than Date::Parse.

The DateTime package (datetime.perl.org) doesn't suffice as it it
either uses Date::Manip internally and DateTime::Format::Strptime also
isn't commonly available. Given that our regex for identifying dates
in syslog is pretty static; POSIX::strptime (implementing strptime(3))
functionality would probably be the best way to go -- except that perl's
POSIX doesn't include strptime and POSIX::strptime is another not commonly
available package. Sigh.
2007-01-17 12:22:31 +00:00
Steve Beattie
7964feb031 The audit user space daemon has to be configured specially to include
the apparmor defined event numbers. genprof, logprof, and aa-eventd
should all still function correctly even when the audit daemon is not
configured correctly. This commit addresses that as well as adding the
needed dependency on perl-gettext.
2007-01-17 12:00:43 +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
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