mirror of
https://github.com/SELinuxProject/selinux
synced 2025-03-06 18:27:40 +00:00
When using "gcc -O2 -Wall -Werror" to compile libsepol, the following error happens: services.c: In function 'constraint_expr_eval_reason': services.c:820:2: error: 'answer_list' may be used uninitialized in this function [-Werror=maybe-uninitialized] free(answer_list); ^ Indeed, because of a goto statement in constraint_expr_eval_reason function, "free(answer_list)" can be called before answer_list has been initialized. Fix this error by moving the definition of answer_list to the beginning of constraint_expr_eval_reason. Acked-by: Steve Lawrence <slawrence@tresys.com> |
||
---|---|---|
checkpolicy | ||
libselinux | ||
libsemanage | ||
libsepol | ||
policycoreutils | ||
scripts | ||
sepolgen | ||
.gitignore | ||
Makefile | ||
README |
To build and install everything under a private directory, run: make DESTDIR=~/obj install install-pywrap To install as the default system libraries and binaries (overwriting any previously installed ones - dangerous!), on x86_64, run: make LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install install-pywrap relabel or on x86 (32-bit), run: make install install-pywrap relabel This may render your system unusable if the upstream SELinux userspace lacks library functions or other dependencies relied upon by your distribution. If it breaks, you get to keep both pieces.