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

Taught in

References