platform_external_selinux/mcstrans
Petr Lautrbach 8a8a4f8e05 mcstrans: Fix check in raw_color()
raw_color() uses color_str as an output argument which is assigned to a new
allocated memory. Therefore it should fail when color_str is null; or
when *color_str is not null in order to avoid a memory leak.

Fixes:
>>> selinux.selinux_raw_context_to_color('system_u:system_r:inetd_t:s0')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 0] Error

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
2018-12-20 15:13:12 +01:00
..
man Fix minor typos 2018-06-30 20:28:25 +02:00
share mcstrans: fix Python linter warnings on test scripts 2018-12-19 11:37:35 +01:00
src mcstrans: Fix check in raw_color() 2018-12-20 15:13:12 +01:00
utils mcstrans: build: follow standard semantics for DESTDIR and PREFIX 2018-02-14 15:59:38 +01:00
COPYING Move policycoreutils/mcstrans to mcstrans. 2016-11-16 11:19:50 -05:00
Makefile Add stub make test targets to new subdirs 2016-11-16 11:20:05 -05:00
TODO Move policycoreutils/mcstrans to mcstrans. 2016-11-16 11:19:50 -05:00
VERSION Update VERSIONs to 2.8 for release. 2018-05-24 14:21:09 -04:00