Interview Prep/Docker/Image Security & Hardening

How do AppArmor and SELinux fit into container hardening?

IntermediateProductionImage Security & Hardening
Answer

They are mandatory access control layers on top of namespaces and capabilities. Docker applies the docker-default AppArmor profile on Debian/Ubuntu and container_t SELinux labels on RHEL/Fedora. Leave them on; do not use --security-opt apparmor=unconfined or label=disable to "fix" permission errors. Write custom profiles for sensitive workloads.

All Docker questions Roadmap: Docker & containers

More on Image Security & Hardening