Linux & OS Internals
PID and user namespaces
Explain how PID and user namespaces change what a process sees, why PID 1 handles signals differently, and how a user ID map ties root inside to an ID outside.
What you will be able to do
- Explain how a PID namespace's init handles signals and how the user ID map works.
- Decide when a container needs a user namespace map, and check the ownership of files it writes to a host directory.
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
- OOM selectionAdvanced · 4 min
Explain how the kernel scores processes when memory runs out, how oom_score_adj shifts that score so a process is protected or exposed, and how cgroup v2 kills a whole…
- cgroup v2 controllersAdvanced · 4 min
Explain how cgroup v2 groups processes under one unified hierarchy, why a controller must be enabled per directory before children can use it, and how memory.max and…
- Filesystem inodesAdvanced · 4 min
Explain what an inode holds, how a name points to it, and why a filesystem can refuse new files while it still has free disk space.
- ext4 journalingAdvanced · 4 min
Explain what ext4's journal protects, why the default data mode journals only metadata, and why an application must call fsync to make its own writes durable.
- File descriptorsAdvanced · 4 min
Explain how file descriptors index a process's open files and sockets, how RLIMIT_NOFILE caps them, and why a leak shows as a slow climb to EMFILE.
- epoll readinessAdvanced · 4 min
Explain how epoll registers descriptors once and returns only the ready ones, and how level-triggered and edge-triggered modes differ in what they report to the program.