platform_external_selinux/libsemanage
Nicolas Iooss b372170058 libsemanage: semanage_seuser_key_create: copy name
When removing a login using semanage with Python 3 the following error
occurs:

    # semanage login -l | grep my_user
    my_user                   user_u

    # semanage login --delete my_user
    ValueError: Login mapping for my_user is not defined

This is due to a use-after-free in the swig-generated code for python3
bindings.

Copy the user name in semanage_seuser_key_create() and free it in
semanage_seuser_key_free(), like commit eac6f1f1b5 ("libsepol:
sepol_{bool|iface|user}_key_create: copy name") did.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2016-11-14 13:14:33 -05:00
..
example Author: Daniel J Walsh 2008-09-15 09:25:33 -04:00
include Fix multiple spelling errors 2016-05-02 08:45:45 -04:00
man libsemanage: Add option to remove HLL files after compilation 2015-02-27 08:41:59 -05:00
src libsemanage: semanage_seuser_key_create: copy name 2016-11-14 13:14:33 -05:00
tests libsemanage/tests: do not force using gcc 2016-09-26 11:01:49 -04:00
utils Load libsepol.so.1 instead of libsepol.so 2015-10-28 08:54:27 -04:00
.gitignore Add subdirectory .gitignore files. 2009-10-20 21:25:55 -04:00
ChangeLog Updated libselinux and libsemanage ChangeLogs 2016-11-07 16:02:42 -05:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile libsemanage: semanage store migration script 2014-08-26 08:03:31 -04:00
VERSION Update VERSION and ChangeLog files for 2.6 final release. 2016-10-14 11:31:26 -04:00