Stephen Smalley | d3c359e | 2018-10-10 12:49:12 -0400 | [diff] [blame] | 1 | Please submit all bug reports and patches to selinux@vger.kernel.org. |
| 2 | Subscribe by sending "subscribe selinux" in the body of an email |
| 3 | to majordomo@vger.kernel.org. |
Stephen Smalley | 38bbed0 | 2015-02-20 12:26:27 -0500 | [diff] [blame] | 4 | |
Stephen Smalley | 4ef938a | 2015-02-03 11:15:24 -0500 | [diff] [blame] | 5 | Build dependencies on Fedora: |
Petr Lautrbach | 478c745 | 2019-02-19 14:29:30 +0100 | [diff] [blame] | 6 | 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 python3-devel python3-setools swig xmlto redhat-rpm-config |
Stephen Smalley | 4ef938a | 2015-02-03 11:15:24 -0500 | [diff] [blame] | 7 | |
Stephen Smalley | 674e068 | 2013-10-30 12:51:19 -0400 | [diff] [blame] | 8 | To build and install everything under a private directory, run: |
| 9 | make DESTDIR=~/obj install install-pywrap |
Stephen Smalley | 0ddd534 | 2013-10-28 13:34:47 -0400 | [diff] [blame] | 10 | |
| 11 | To install as the default system libraries and binaries |
Stephen Smalley | 674e068 | 2013-10-30 12:51:19 -0400 | [diff] [blame] | 12 | (overwriting any previously installed ones - dangerous!), |
| 13 | on x86_64, run: |
Stephen Smalley | 0ddd534 | 2013-10-28 13:34:47 -0400 | [diff] [blame] | 14 | make LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install install-pywrap relabel |
Stephen Smalley | 674e068 | 2013-10-30 12:51:19 -0400 | [diff] [blame] | 15 | or on x86 (32-bit), run: |
| 16 | make install install-pywrap relabel |
Stephen Smalley | 0ddd534 | 2013-10-28 13:34:47 -0400 | [diff] [blame] | 17 | |
| 18 | This may render your system unusable if the upstream SELinux userspace |
| 19 | lacks library functions or other dependencies relied upon by your |
| 20 | distribution. If it breaks, you get to keep both pieces. |
Karl MacMillan | 4a05e95 | 2017-01-20 12:15:59 -0500 | [diff] [blame] | 21 | |
| 22 | To install libsepol on macOS (mainly for policy analysis): |
Marcus Folkesson | f8532f1 | 2018-02-14 10:57:03 +0100 | [diff] [blame] | 23 | cd libsepol; make PREFIX=/usr/local install |
Karl MacMillan | 4a05e95 | 2017-01-20 12:15:59 -0500 | [diff] [blame] | 24 | |
| 25 | This requires GNU coreutils (brew install coreutils). |