commit | eac6f1f1b5125fde76dedb2f3e806a69f8a3e9ff | [log] [tgz] |
---|---|---|
author | Stephen Smalley <sds@tycho.nsa.gov> | Tue Nov 08 10:46:14 2016 -0500 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Tue Nov 08 10:46:14 2016 -0500 |
tree | 4bfbebfc8c5b4b9b22e78de985f6d9ad169cb7a4 | |
parent | 5e911ee825d273050f08ae5cc5250f743e4b63c3 [diff] |
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>