Skip to content
Lukas Vrabec edited this page Sep 5, 2018 · 3 revisions

Compiling SELinux policy for Fedora Rawhide

Build requirements

  • libsepol 2.8.2
  • libsemanage 2.8.3
  • checkpolicy 2.8.2
  • policycoreutils 2.8.6
  • Python PyXML
  • GCC
  • make
  • git
  • m4

Download sources

$ git clone https://github.com/fedora-selinux/selinux-policy.git

$ git clone https://github.com/fedora-selinux/selinux-policy-contrib.git selinux-policy/policy/modules/contrib

$ git clone https://github.com/containers/container-selinux.git && cp container-selinux/container.* selinux-policy/policy/modules/contrib

$ cd selinux-policy

Compiling && Installing

Local policy development:

$ make policy

Compile and install the policy:

# make install

Compile, install, and load the policy:

# make load

See the README for more information on available make targets.