apparmor/libraries/libapparmor/include/sys
Tyler Hicks 126472b561 libapparmor: Protect _aa_autofree users from freeing bad pointers
Creates a libapparmor function, _aa_asprintf(), which sets the *strp to
NULL on error. This is needed for all of the users of the _aa_autofree
cleanup attribute because the value of *strp is undefined when
asprintf() fails and that could result in _aa_autofree() being passed a
pointer value that it should not free.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: John Johansen <john.johansen@canonical.com>
2015-03-25 17:09:27 -05:00
..
apparmor.h libapparmor: Move the aa_policy_cache API 2015-03-25 17:09:27 -05:00
apparmor_private.h libapparmor: Protect _aa_autofree users from freeing bad pointers 2015-03-25 17:09:27 -05:00
Makefile.am libapparmor: Create a private API 2015-03-25 17:09:27 -05:00