NOTE: CentOS Enterprise Linux is built from the Red Hat Enterprise Linux source code. Other than logo and name changes CentOS Enterprise Linux is compatible with the equivalent Red Hat version. This document applies equally to both Red Hat and CentOS Enterprise Linux.
Writing SELinux policy is not a trivial undertaking. The topic cannot
easily be covered in a few, simple how-to steps. If you are interested in
this topic, read Chapter 7 Compiling SELinux Policy and Chapter 8 Customizing and Writing Policy. Those chapters contain information on
writing, testing, loading, and validating a policy.