Sandboxing in Linux with zero lines of code
Jul 8, 2020Ignat Korchagin

Summary
This post introduces Linux seccomp as a powerful tool for sandboxing applications without writing code. It explains system calls and how seccomp allows applications to declare their intended system call usage to the kernel, with the kernel terminating or signaling violations. The post demonstrates this with a C code example, showing how to prohibit the 'uname' system call and return a custom error code, effectively preventing arbitrary code execution and enhancing security.
More from the Website Security & Threat Management trail
- We tested our own WAF with frontier AI models. Here’s what we found
- When scanners miss the attack: how Cloudflare Client-Side Security protects storefronts
- Introducing automatic remediation policies with Cloudflare CASB
- Introducing context-aware vulnerability discovery and remediation with Cloudflare Managed Defense and OpenAI Daybreak Models
- Introducing Adaptive Intelligence: undermining the economics of every bot attack