blob: e4423ca23b58d23e532daa0a23724ea85b855a63 [file] [log] [blame]
Stephen Smalleyd3c359e2018-10-10 12:49:12 -04001Please submit all bug reports and patches to selinux@vger.kernel.org.
2Subscribe by sending "subscribe selinux" in the body of an email
3to majordomo@vger.kernel.org.
Stephen Smalley38bbed02015-02-20 12:26:27 -05004
Stephen Smalley4ef938a2015-02-03 11:15:24 -05005Build dependencies on Fedora:
Petr Lautrbach478c7452019-02-19 14:29:30 +01006yum 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 python3-devel python3-setools swig xmlto redhat-rpm-config
Stephen Smalley4ef938a2015-02-03 11:15:24 -05007
Stephen Smalley674e0682013-10-30 12:51:19 -04008To build and install everything under a private directory, run:
9make DESTDIR=~/obj install install-pywrap
Stephen Smalley0ddd5342013-10-28 13:34:47 -040010
11To install as the default system libraries and binaries
Stephen Smalley674e0682013-10-30 12:51:19 -040012(overwriting any previously installed ones - dangerous!),
13on x86_64, run:
Stephen Smalley0ddd5342013-10-28 13:34:47 -040014make LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install install-pywrap relabel
Stephen Smalley674e0682013-10-30 12:51:19 -040015or on x86 (32-bit), run:
16make install install-pywrap relabel
Stephen Smalley0ddd5342013-10-28 13:34:47 -040017
18This may render your system unusable if the upstream SELinux userspace
19lacks library functions or other dependencies relied upon by your
20distribution. If it breaks, you get to keep both pieces.
Karl MacMillan4a05e952017-01-20 12:15:59 -050021
22To install libsepol on macOS (mainly for policy analysis):
Marcus Folkessonf8532f12018-02-14 10:57:03 +010023cd libsepol; make PREFIX=/usr/local install
Karl MacMillan4a05e952017-01-20 12:15:59 -050024
25This requires GNU coreutils (brew install coreutils).