bpfbox
William Findlay, Anil B. Somayaji, David Barrera · 2020
Process confinement is a key requirement for workloads in the cloud and in other contexts. Existing process confinement mechanisms on Linux, however, are complex and inflexible because they are implemented using a combination of primitive abstractions (e.g., namespaces, cgroups) and complex security mechanisms (e.g., SELinux, AppArmor) that were designed for purposes beyond basic process confinement. We argue that simple, efficient, and flexible confinement can be better implemented today using eBPF, an emerging technology for safely extending the Linux kernel. We present a proof-of-concept confinement application, bpfbox, that uses less than 2000 lines of kernelspace code and allows for confinement at the userspace function, system call, LSM hook, and kernelspace function boundaries---something that no existing process confinement mechanism can do. Further, it does so using a policy language simple enough to use for ad-hoc confinement purposes. This paper presents the motivation, design, implementation, and benchmarks of bpfbox, including a sample web server confinement policy.
Cited by 30 works. doi:10.1145/3411495.3421358 Open-access PDF
Authors
References
- The BSD packet filter: a new architecture for user-level packet capture
- A note on the confinement problem
- Mach: A New Kernel Foundation for UNIX Development.
- Usenix Security Symposium
- A secure environment for untrusted helper applications confining the Wily Hacker
- Checking for Race Conditions in File Accesses
- On micro-kernel construction
- Linux security modules: general security support for the linux kernel
- Improving host security with system call policies
- Dynamic instrumentation of production systems