History log of /external/selinux/libsepol/src/boolean_record.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e6edc424555d4f8d1d6a968072e137a77656d480 07-Apr-2017 Stephen Smalley <sds@tycho.nsa.gov> libsepol: do not seg fault on sepol_*_key_free(NULL)

sepol_*_key_free(NULL) should just be a no-op just like
free(NULL). Fix several instances that did not handle this
correctly and would seg fault if called with NULL.

Test: setsebool -P zebra_write_config=1 while non-root

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
/external/selinux/libsepol/src/boolean_record.c
eac6f1f1b5125fde76dedb2f3e806a69f8a3e9ff 08-Nov-2016 Stephen Smalley <sds@tycho.nsa.gov> libsepol: sepol_{bool|iface|user}_key_create: copy name

The sepol_{bool|iface|user}_key_create() functions were not
copying the name. This produces a use-after-free in the
swig-generated code for python3 bindings. Copy the name
in these functions, and free it upon sepol_{bool|iface|user}_key_free().

Reported-by: Nicolas Iooss <nicolas.iooss@m4x.org>
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
/external/selinux/libsepol/src/boolean_record.c
13cd4c8960688af11ad23b4c946149015c80d549 19-Aug-2008 Joshua Brindle <method@manicmethod.com> initial import from svn trunk revision 2950
/external/selinux/libsepol/src/boolean_record.c