Categories
Linux

SELinux: convert denial to policy

Create a policy .te file by using the following command as an example.

Now follow HOWTO: Build a SELinux Policy and activate it

Categories
CentOS Linux

HOWTO: Build a SELinux Policy and activate it

Build the policy according to

  1. https://www.centos.org/docs/5/html/Deployment_Guide-en-US/sec-sel-building-policy-module.html
  2. https://wiki.gentoo.org/wiki/SELinux/Tutorials/Creating_your_own_policy_module_file
  3. https://wiki.centos.org/HowTos/SELinux

The package selinux-policy-devel is required.