Chapter 16: Developing Policies with SELinux CIL
While the reference policy is the most frequently used language and development style for SELinux policies, the Common Intermediate Language (CIL) is a powerful, but more low-level language construct to use to develop SELinux policies. Low-level as it might be though, it is still very much readable and well supported, as SELinux tools will use CIL under the hood when using other languages.
Since CIL is the main language used, we know it can be used to build entire policies. Sadly, there are no supporting constructs available for developers to use, unlike the reference policy. However, we can still learn how to customize the current policy, creating specific definitions that are not possible with the more common reference policy, and even build a complete application policy if we choose.
In this chapter, we're going to cover the following main topics:
- Introducing CIL
- Creating fine-grained definitions
- Building...