Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

Live-patching security vulnerabilities inside the Linux kernel with eBPF Linux Security Module

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Frederick Lawler
Word Count
1,957
Language
English
Hacker News Points
9
Summary

The text discusses Linux Security Modules (LSM) and how they can be used to implement security policies in the Linux kernel. It introduces LSM BPF, a new way of implementing granular security policies without configuration or loading a kernel module. The author then presents a real-world problem involving unshare syscall and privilege escalation, and demonstrates how LSM BPF can be used to solve this issue by tracking down the appropriate hook candidate and writing an LSM BPF program. Finally, the text discusses the performance impact of the solution and proposes a patch for propagating error codes from the cred_prepare hook up the call stack.