mirror of
https://github.com/SELinuxProject/selinux
synced 2025-03-11 04:37:29 +00:00
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> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
mcscolor.c | ||
mcstrans.c | ||
mcstrans.h | ||
mcstrans.init | ||
mcstrans.service | ||
mcstransd.c | ||
mls_level.c | ||
mls_level.h | ||
README |
To rebuild with debugging support: make clean && env CFLAGS="-Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute -DDEBUG -g" LDFLAGS="-g" make