Linux & OS Internals
Capabilities and seccomp
Explain how capabilities split root into smaller rights, how the bounding set limits exec, and how seccomp filters the system calls a process can make.
What you will be able to do
- Explain how capabilities, the bounding set and seccomp filters each limit a process.
- Decide which capabilities and which filter a service needs, and check them with getcap and the status file.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Linux & OS Internals
- Unix signalsAdvanced · 4 min
Explain how signals reach a process, why SIGKILL and SIGSTOP cannot be handled, why standard signals merge, and why a handler should only set a flag.
- systemd unitsAdvanced · 4 min
Explain what a systemd unit describes, where its files are found, and how After, Requires and Wants set the start order and the dependencies between units.
- strace tracingAdvanced · 4 min
Explain how strace uses ptrace to record a process's system calls, and read an unfinished call to find what a stuck process is waiting for without changing its code.
- perf profilingAdvanced · 4 min
Explain how sampling with perf estimates where CPU time goes, why symbols and event types decide whether a profile can be trusted, and how to read the top of a report.
- eBPF observabilityAdvanced · 4 min
Explain how eBPF programs are checked by the verifier, attached to kernel events and read through maps, so you can measure a live kernel path with less overhead than…
- PID and user namespaces: failure analysisAdvanced · 4 min
Explain how user and PID namespaces map IDs and process numbers between a container and the host, so a permission or signal fault can be tied to the right side.