This is the upstream repository for the Security Enhanced Linux (SELinux) userland libraries and tools. The software provided by this project complements the SELinux features integrated into the Linux kernel and is used by Linux distributions. All bugs and patches should be submitted to
C Python Roff Objective-C Makefile Yacc Other
Switch branches/tags
sepolgen-2.6 sepolgen-1.2.3 sepolgen-1.2.2 sepolgen-1.2.1 sepolgen-1.2 semodule-utils-2.8 semodule-utils-2.8-rc3 semodule-utils-2.8-rc2 semodule-utils-2.8-rc1 semodule-utils-2.7 selinux-sandbox-2.8 selinux-sandbox-2.8-rc3 selinux-sandbox-2.8-rc2 selinux-sandbox-2.8-rc1 selinux-sandbox-2.7 selinux-python-2.8 selinux-python-2.8-rc3 selinux-python-2.8-rc2 selinux-python-2.8-rc1 selinux-python-2.7 selinux-gui-2.8 selinux-gui-2.8-rc3 selinux-gui-2.8-rc2 selinux-gui-2.8-rc1 selinux-gui-2.7 selinux-dbus-2.8 selinux-dbus-2.8-rc3 selinux-dbus-2.8-rc2 selinux-dbus-2.8-rc1 selinux-dbus-2.7 secilc-2.8 secilc-2.8-rc3 secilc-2.8-rc2 secilc-2.8-rc1 secilc-2.7 secilc-2.6 secilc-2.5 restorecond-2.8 restorecond-2.8-rc3 restorecond-2.8-rc2 restorecond-2.8-rc1 restorecond-2.7 policycoreutils-2.8 policycoreutils-2.8-rc3 policycoreutils-2.8-rc2 policycoreutils-2.8-rc1 policycoreutils-2.7 policycoreutils-2.6 policycoreutils-2.5 policycoreutils-2.4 policycoreutils-2.3 policycoreutils-2.2.5 policycoreutils-2.2.4 policycoreutils-2.2.3 policycoreutils-2.2.2 policycoreutils-2.2.1 policycoreutils-2.2 mcstrans-2.8 mcstrans-2.8-rc3 mcstrans-2.8-rc2 mcstrans-2.8-rc1 mcstrans-2.7 libsepol-2.8 libsepol-2.8-rc3 libsepol-2.8-rc2 libsepol-2.8-rc1 libsepol-2.7 libsepol-2.6 libsepol-2.5 libsepol-2.4 libsepol-2.3 libsepol-2.2 libsemanage-2.8 libsemanage-2.8-rc3 libsemanage-2.8-rc2 libsemanage-2.8-rc1 libsemanage-2.7 libsemanage-2.6 libsemanage-2.5 libsemanage-2.4 libsemanage-2.3 libsemanage-2.2 libselinux-2.8 libselinux-2.8-rc3 libselinux-2.8-rc2 libselinux-2.8-rc1 libselinux-2.7 libselinux-2.6 libselinux-2.5 libselinux-2.4 libselinux-2.3 libselinux-2.2.2 libselinux-2.2.1 libselinux-2.2 checkpolicy-2.8 checkpolicy-2.8-rc3 checkpolicy-2.8-rc2 checkpolicy-2.8-rc1 checkpolicy-2.7 checkpolicy-2.6
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


Please submit all bug reports and patches to
Subscribe via

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 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.

To install libsepol on macOS (mainly for policy analysis):
cd libsepol; make PREFIX=/usr/local install

This requires GNU coreutils (brew install coreutils).