apparmor/libraries/libapparmor
Steve Beattie 2e1d4f5b67 libapparmor: fix swig test_apparmor.py for zero length ptrace records
Merge from trunk revision 3715

The added testcase for a ptrace target with an empty string
(ptrace_garbage_lp1689667_1.in) was causing the swig python test script
to fail. The generated python swig record for libapparmor ends up
setting a number of fields to None or other values that indicate the
value is unset, and the test script was checking if the value in the
field didn't evaluate to False in a python 'if' test.

Unfortunately, python evaluates the empty string '' as False in 'if'
tests, resulting in the specific field that contained the empty string
to be dropped from the returned record. This commit fixes that by
special case checking for the empty string.

Signed-off-by: Steve Beattie <steve@nxnw.org>
Acked-by: John Johansen <john.johansen@canonical.com>
2017-10-18 17:09:42 -07:00
..
doc libapparmor: Correct meaning of EPERM in aa_change_profile man page 2016-01-27 13:38:39 -06:00
include libapparmor: Remove unused path param from _aa_is_blacklisted() 2015-06-16 15:49:51 -05:00
m4 libapparmor: Check for podchecker during configure stage 2014-11-17 21:19:55 -06:00
src accept hostname with dots 2016-05-05 12:02:11 +02:00
swig libapparmor: fix swig test_apparmor.py for zero length ptrace records 2017-10-18 17:09:42 -07:00
testsuite remove test_multi unconfined-change_hat.profile from 2.10 and 2.9 branch 2017-07-31 21:38:02 +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:50:43 -05:00
ChangeLog move libapparmor into the libraries directory 2008-05-19 22:48:31 +00:00
configure.ac libapparmor: Fix FTBFS when secure_getenv() is not available 2015-03-26 16:25:16 -05: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 update the bugtracker link in the libapparmor README 2014-02-24 22:44:32 +01:00

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

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