apparmor/libraries/libapparmor/testsuite
Steve Beattie f7ce93b27c libapparmor: add support for ip addresses and ports
Bugs: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/800826
  https://bugzilla.novell.com/show_bug.cgi?id=755923

This patch modifies the libapparmor log parsing code to add support
for the additional ip address and port keywords that can occur in
network rejection rules. The laddr and faddr keywords stand for local
address and foreign address respectively.

The regex used to match an ip address is not very strict, to hopefully
catch the formats that the kernel emits for ipv6 addresses; however,
because this is in a context triggered by the addr keywords, it should
not over-eagerly consume non-ip addresses. Said addresses are returned
as strings in the struct to be processed by the calling application.

Bug: https://launchpad.net/bugs/800826
2012-04-06 15:59:04 -07:00
..
config move libapparmor into the libraries directory 2008-05-19 22:48:31 +00:00
lib move libapparmor into the libraries directory 2008-05-19 22:48:31 +00:00
libaalogparse.test move libapparmor into the libraries directory 2008-05-19 22:48:31 +00:00
test_multi libapparmor: add support for ip addresses and ports 2012-04-06 15:59:04 -07:00
Makefile.am From: Jeff Mahoney <jeffm@suse.com> 2011-01-05 14:41:11 -08:00
test_multi.c libapparmor: add support for ip addresses and ports 2012-04-06 15:59:04 -07:00