Skip to content
systemcoding.dev

Library

Everything you need to level up your coding skills.

Flat illustration of a single-board computer with its SoC, memory, header and ports, with the Linux, NXP and Raspberry Pi logos.
Embedded Linux

Scan an I2C Bus for Devices With i2cdetect

Enable /dev/i2c-N, list adapters with i2cdetect -l, scan a bus with i2cdetect -y and read the address grid, including reserved ranges and missing devices.

6 min read
Flat illustration of a shield with a lock, a key and a password field, with the Linux, C and Rust logos.
Security

Write a seccomp Filter With libseccomp

Build a default-deny seccomp allow-list in C with libseccomp, add an argument rule that limits write to one file descriptor, and inspect the generated BPF.

6 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.