Linux OS Internals (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
Linux Kernel Capabilities: Least privilege without full root access.
senior Levellinux-osAdvanced Internals
In Simple Words: Traditionally, a process was either unprivileged (UID != 0) or all-powerful root (UID == 0). Linux Capabilities divide root privileges into over 40 distinct permissions:
CAP_NET_BIND_SERVICE: Allows binding to privileged network ports (< 1024) without running as root (e.g.setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx).CAP_SYS_ADMIN: Overly broad "almost root" capability (mount filesystems, load drivers). Should be avoided in production containers.CAP_NET_ADMIN: Configure network interfaces, firewall rules, and routing tables.