Chapter 11: Enhancing the Security of Containerized Workloads
Container platforms and management frameworks provide application-level abstraction to administrators and developers. Lightweight container frameworks allow for rapid development and deployment of new applications, whereas heavier container platforms allow for optimal resource consumption and highly resilient hosting platforms.
SELinux plays a vital role in many of these frameworks and platforms, ensuring that untrusted containers cannot escape or interact with resources they are not supported to interact with. In this chapter, we look at how SELinux is supported, ranging from systemd-nspawn
to podman
(and Docker), and finally in larger environments with Kubernetes. We also learn how to create custom SELinux domains for containers using the udica
utility.
In this chapter, we're going to cover the following main topics:
- Using SELinux with systemd's container support
- Configuring podman
- Leveraging...