SELinux in Embedded Linux: From Basics To Best Practices
summary
Claim: SELinux is practical for embedded Linux when you focus on type enforcement and keep policies small and readable. Examples use Yocto with meta-se-linux, QEMU test runs and permissive mode to collect audit violations, then map kernel-reported source/target/class fields into rules using the reference policy macros. BMW reports enabling SELinux on infotainment ECUs (first shipped 2022) across many teams (~1,000 developers), built a meta-layer and per-domain policies, and keeps it working using systemd unit transitions, udev labeling, DM‑Verity and AB updates.
AI-written summary · about
chapters (10)
- 0:00Introduction to SELinux
- 1:02Mandatory access control basics
- 6:35Why use SELinux in embedded systems
- 11:32SELinux labels and types
- 13:41Simple SELinux example
- 18:40Writing SELinux policies
- 23:01SELinux and Yocto integration
- 27:15Experience from large-scale projects
- 35:22Key takeaways and conclusion
- 35:43Q&A session
