Skip to content

Lesson 4 of 9 · 8 min read

Linux Sandboxing Primitives: Namespaces, cgroups, seccomp and Landlock

Linux has no single sandbox feature. Containers and sandboxes combine primitives that each answer a different question: namespaces decide what a process can see, cgroups how much it can use, capabilities which root powers remain, Landlock or a security module which files and ports it may touch, and seccomp which system calls it may make. no_new_privs ties them together by stopping privilege gain through exec. They must be applied in the right order, and all of them are enforced by one shared kernel, so they harden a process but do not isolate hostile code from a kernel bug.

Reviewed By the AISecurityInterviews editorial team
free sign-in, no card required

Practise it as an interviewer asks it

Course lessons that teach this

Related lessons