apparmor/libraries/libapparmor
Tyler Hicks 27f03e8097 libapparmor: Be consistent with the type used for buffer sizes
The features_struct.size variable is used to hold a buffer size and it
is also passed in as the size parameter to read(). It should be a size_t
instead of an int.

A new helper function, features_buffer_remaining(), is created to handle
the two places where the remaining bytes in the features buffer are
calculated.

This patch also changes the size parameter of load_features_dir() to a
size_t to match the same parameter of load_features_file() as well as
the features_struct.size change described above.

Two casts were needed when comparing signed types to unsigned types.
These casts are safe because the signed value is checked for "< 0"
immediately before the casts.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
2016-09-30 15:03:07 -05:00
..
doc man page touchups 2016-03-19 01:48:11 -07:00
include libapparmor: Implement aa_stack_profile and aa_stack_onexec 2016-03-18 17:28:50 -05:00
m4 libapparmor: Check for podchecker during configure stage 2014-11-17 21:19:55 -06:00
src libapparmor: Be consistent with the type used for buffer sizes 2016-09-30 15:03:07 -05:00
swig libapparmor: Implement aa_stack_profile and aa_stack_onexec 2016-03-18 17:28:50 -05:00
testsuite logparser.py: ignore network events with 'send receive' 2016-07-30 00:41:43 +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 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