Capabilities
Capabilities split the power of the root user into pieces that can be dropped individually.
Capabilities are the separate privileges into which Linux splits the powers of the root user. Traditional Unix knew two kinds of process: those run by root, which pass every permission check, and all others. Linux instead checks one capability for each privileged action, such as changing network settings or loading a kernel module. The kernel defines about forty of them, and a process can hold any mix.
Capabilities exist so that a program can get only the privileges its job needs. A web server that must listen on a port below 1024 needs only the capability to bind such ports, not full root. An attacker who takes over such a program gains that one power rather than the whole machine. Program files can also carry capabilities, which replaces many programs that used to run as setuid root.
Capabilities sit inside the permission checks of the kernel, so they cost almost nothing to use. Together with namespaces and seccomp filters, they turn ordinary processes into a container. A sandbox that shares the host kernel runs its code with most capabilities removed. In a sandbox built on a virtual machine, code may hold every capability, because the guest kernel is not the host kernel.