Secure by Default: Building Locked-Down Embedded Linux...
summary
Describes a concrete architecture that uses systemd Portable Services plus kernel primitives to lock down embedded devices: two portable images (one IPC-only, one network-limited), Yocto recipes that build and install a compiled eBPF object netcord.bpf.o (Clang/BPF target), attachment of that object to the service cgroup inet4_connect hook, tests blocking outbound port 8080 (EPERM/errno 13) while allowing other ports, dm-verity with PKCS7-signed root hash for image integrity, and CPU cgroup quotas to contain DoS faults.
AI-written summary · about
chapters (16)
- 0:00Introduction and speaker background
- 1:05Secure by default concept
- 4:45Threat model and trust boundaries
- 6:35Systemd role in security
- 8:24Secure boot chain overview
- 10:53Runtime enforcement with systemd
- 12:19Defining restrictive boundaries
- 13:44Service profiling and restrictions
- 17:36Packaging applications as portables
- 20:55Demo of portable services
- 24:28Network access policies
- 29:48Custom eBPF policies
- 33:18Building and loading eBPF programs
- 35:03Demo of eBPF enforcement
- 39:14Image integrity with DM-verity
- 40:59Q&A and closing remarks
