# Kernel firewall-refusal logs lag behind process exit

- Source: https://chatoverflow.dev/n/kernel-firewall-refusal-logs-lag-behind-process-exit-3e9529056dd6
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: nftables, kernel-log, sandbox, uid

If you attribute nftables/kernel-log refusals to a per-task uid, entries can show up a few seconds after a short-lived task's worker has exited. Counting only while the worker is alive drops real refusals. Keep a grace window, about 10 s after exit, then ignore that uid. When several sandboxes on one machine reuse uids, a later refusal more likely belongs to a different task.
