No description
Find a file
Stephen Smalley 6e4bb702af mcstrans: fix clang warnings
Fix the following warnings from clang.

mcstrans.c:1309:6: warning: variable 'groups' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (violates_constraints(l)) {
            ^~~~~~~~~~~~~~~~~~~~~~~
mcstrans.c:1491:9: note: uninitialized use occurs here
        while (groups)
               ^~~~~~
mcstrans.c:1309:2: note: remove the 'if' if its condition is always false
        if (violates_constraints(l)) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mcstrans.c:1303:6: warning: variable 'groups' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (!l)
            ^~
mcstrans.c:1491:9: note: uninitialized use occurs here
        while (groups)
               ^~~~~~
mcstrans.c:1303:2: note: remove the 'if' if its condition is always false
        if (!l)
        ^~~~~~~
mcstrans.c:1299:6: warning: variable 'groups' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (!level)
            ^~~~~~
mcstrans.c:1491:9: note: uninitialized use occurs here
        while (groups)
               ^~~~~~
mcstrans.c:1299:2: note: remove the 'if' if its condition is always false
        if (!level)
        ^~~~~~~~~~~
mcstrans.c:1316:2: note: variable 'groups' is declared here
        word_group_t *groups = NULL;
        ^
3 warnings generated.
mcscolor.c:334:24: warning: size argument in 'strncat' call appears to be size of the source [-Wstrncat-size]
                strncat(result, buf, sizeof(buf));

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2016-11-16 11:19:51 -05:00
checkpolicy Update VERSION and ChangeLog files for 2.6 final release. 2016-10-14 11:31:26 -04:00
dbus Move policycoreutils/sepolicy dbus service files to dbus. 2016-11-16 11:19:50 -05:00
gui Move sepolicy desktop and png files to gui. 2016-11-16 11:19:51 -05:00
libselinux Updated libselinux and libsemanage ChangeLog 2016-11-15 11:14:24 -05:00
libsemanage Updated libsemanage ChangeLog 2016-11-15 17:28:49 -05:00
libsepol Updated libsepol ChangeLog 2016-11-16 09:14:13 -05:00
mcstrans mcstrans: fix clang warnings 2016-11-16 11:19:51 -05:00
policycoreutils Move policycoreutils/sepolgen-ifgen into python/audit2allow. 2016-11-16 11:19:51 -05:00
python Move policycoreutils/sepolgen-ifgen into python/audit2allow. 2016-11-16 11:19:51 -05:00
restorecond Move policycoreutils/restorecond to restorecond. 2016-11-16 11:19:50 -05:00
sandbox Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
scripts scripts/release: cleanups 2016-10-14 11:47:29 -04:00
secilc Updated secilc ChangeLog 2016-11-15 11:10:21 -05:00
semodule-utils Move policycoreutils/semodule_{deps,expand,link} to semodule-utils. 2016-11-16 11:19:50 -05:00
.gitignore Move policycoreutils/restorecond to restorecond. 2016-11-16 11:19:50 -05:00
CleanSpec.mk Add empty top level Android.mk / CleanSpec.mk files 2015-04-16 07:54:09 -04:00
Makefile Build mcstrans. 2016-11-16 11:19:50 -05:00
README Add redhat-rpm-config as a build dependency on Fedora. 2016-05-04 15:54:27 -04:00

Please submit all bug reports and patches to selinux@tycho.nsa.gov.
Subscribe via selinux-join@tycho.nsa.gov.

Build dependencies on Fedora:
yum install audit-libs-devel bison bzip2-devel dbus-devel dbus-glib-devel flex flex-devel flex-static glib2-devel libcap-devel libcap-ng-devel pam-devel pcre-devel python-devel setools-devel swig ustr-devel xmlto redhat-rpm-config

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.