no-new-privileges
A container setting that stops processes from gaining more rights than they started with, for example by running a program that is marked to run as its owner.
In more detail
Set with --security-opt no-new-privileges:true. Combined with a non-root user and dropped capabilities it closes a common path for privilege escalation inside the container.
Related terms
- least privilege — Giving every program and person only the access they need, and nothing more.
- non-root user — An ordinary user account with limited rights, which a container should run its service as.
- Linux capabilities — Separate pieces of root power, such as binding low ports or changing file owners, that can be granted or removed one by one.
Taught in
- Kubernetes Pod Security Standards: Baseline & Restricted — Cloud Security & DevSecOps Engineering
- Environment, Secret Files And Runtime Restrictions — Docker Architecture & Production Containers