SELinux.txt 1.0 KB

123456789101112131415161718192021222324252627
  1. If you want to use SELinux, chances are you will want
  2. to use the distro-provided policies, or install the
  3. latest reference policy release from
  4. http://oss.tresys.com/projects/refpolicy
  5. However, if you want to install a dummy policy for
  6. testing, you can do using 'mdp' provided under
  7. scripts/selinux. Note that this requires the selinux
  8. userspace to be installed - in particular you will
  9. need checkpolicy to compile a kernel, and setfiles and
  10. fixfiles to label the filesystem.
  11. 1. Compile the kernel with selinux enabled.
  12. 2. Type 'make' to compile mdp.
  13. 3. Make sure that you are not running with
  14. SELinux enabled and a real policy. If
  15. you are, reboot with selinux disabled
  16. before continuing.
  17. 4. Run install_policy.sh:
  18. cd scripts/selinux
  19. sh install_policy.sh
  20. Step 4 will create a new dummy policy valid for your
  21. kernel, with a single selinux user, role, and type.
  22. It will compile the policy, will set your SELINUXTYPE to
  23. dummy in /etc/selinux/config, install the compiled policy
  24. as 'dummy', and relabel your filesystem.