What does `--security-opt=no-new-privileges` NOT stop?
IntermediateProductionImage Security & Hardening
Answer
It does not stop kernel exploits, access via mounted sockets or host paths, abuse of capabilities already granted, or attacks from root with CAP_SYS_ADMIN. It is one layer; combine with dropped caps, seccomp, read-only FS and user namespaces.
More on Image Security & Hardening
Why should containers not run as root, and how do you enforce it?BeginnerWhat is a distroless image and what are the trade-offs?BeginnerHow do you scan an image with Trivy and fail a CI build on serious findings?BeginnerHow do you manage Trivy false positives and accepted risks?IntermediateWhich `docker run` flags make up a hardened runtime baseline?BeginnerWhat does `no-new-privileges` protect against?Beginner