Chapter 6: Configuring SELinux through Infrastructure-as-Code Orchestration
With the advent of large distributed application platforms, cloud services, and the high adoption of virtualized infrastructure, system administrators are actively managing their systems through Infrastructure-as-Code frameworks: orchestration and configuration tooling that uses source code-like information to manage the systems.
In this chapter, administrators will learn how to distribute and load custom SELinux policy modules, set file context definitions and apply those to the systems, set the permissive state of the system or SELinux domains, configure the SELinux settings on the systems, and how to customize SELinux actions if they are not supported by the tooling. We will apply this with four popular automation frameworks: Ansible, Chef, Puppet, and SaltStack.
We will cover the following topics in this chapter:
- Introducing the target settings and policies
- Using Ansible for SELinux system...