Stephen Smalley | 4ef938a | 2015-02-03 11:15:24 -0500 | [diff] [blame^] | 1 | Build dependencies on Fedora: |
| 2 | yum install bison flex swig flex-static flex-devel pcre-devel bzip2-devel ustr-devel audit-libs-devel libcap-ng-devel |
| 3 | |
Stephen Smalley | 674e068 | 2013-10-30 12:51:19 -0400 | [diff] [blame] | 4 | To build and install everything under a private directory, run: |
| 5 | make DESTDIR=~/obj install install-pywrap |
Stephen Smalley | 0ddd534 | 2013-10-28 13:34:47 -0400 | [diff] [blame] | 6 | |
| 7 | To install as the default system libraries and binaries |
Stephen Smalley | 674e068 | 2013-10-30 12:51:19 -0400 | [diff] [blame] | 8 | (overwriting any previously installed ones - dangerous!), |
| 9 | on x86_64, run: |
Stephen Smalley | 0ddd534 | 2013-10-28 13:34:47 -0400 | [diff] [blame] | 10 | make LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install install-pywrap relabel |
Stephen Smalley | 674e068 | 2013-10-30 12:51:19 -0400 | [diff] [blame] | 11 | or on x86 (32-bit), run: |
| 12 | make install install-pywrap relabel |
Stephen Smalley | 0ddd534 | 2013-10-28 13:34:47 -0400 | [diff] [blame] | 13 | |
| 14 | This may render your system unusable if the upstream SELinux userspace |
| 15 | lacks library functions or other dependencies relied upon by your |
| 16 | distribution. If it breaks, you get to keep both pieces. |