Avatar photo
By: Michal Koutný

December 10, 2025 5:24 pm

343 views

net_cls in the time of cgroup v2

Do you ever wonder how to apply specific networking rules to a chosen program, e.g. a browser? Network rules based on PID (process ID) were dropped in 2005 for good reasons. Let's not bring up entire containers for a moment (where you can define separate configuration in network_namespaces(7)) but take only one part of […]

Read More


Avatar photo
By: Michal Koutný

July 20, 2022 5:41 pm

7,794 views

What is a kernel thread?

The title suggests there exists one such concept as a kernel thread. The reality is much more complex than mere kernel threads and the rest. The practical need of differentiation popped up when systemd service manager needed to terminate all processes except for kernel threads. Ideally, the kernel threads would stay in the background doing […]

Read More