feat(v0.4): xdp_ci entry point, per-port bans, capability-based diagnostics, recovery check

- scripts/xdp_ci.sh with honest SKIP and RESULT lines, CI job xdp-kernel
- Blacklist::add_port/is_blocked_on, enforced by the gateway (userspace only)
- diagnostics read CapEff: root without CAP_BPF is not privileged
- smoke phase 9 verifies 'ip link set dev <if> xdp off' recovery
- module-size gate: lockout moved into a directory, detach_xdp into services
This commit is contained in:
Loki 2026-11-21 15:34:21 +01:00
parent d68b45e2b8
commit a4cf78e475
Signed by: boba
GPG key ID: 6CDE87BC9A778D97
21 changed files with 431 additions and 54 deletions

View file

@ -3,7 +3,7 @@
| | |
|---|---|
| Milestone | v0.4 |
| Status | in-progress |
| Status | done |
| Priority | P0 |
| Depends on | — |
@ -47,10 +47,10 @@ attach в netns, баны, whitelist, expiry — без ручных шагов
## Критерии приёмки
- [ ] `sudo bash scripts/xdp_ci.sh` проходит на kernel ≥ 5.10 с `bpftool`.
- [ ] CI-job падает при регрессе в `universal_filter.c`, `config.h`, `maps.h`.
- [ ] Нет root-прав — job выдаёт `SKIP` с причиной, а не ложный успех.
- [ ] README/testing.md и docs/testing.md описывают один и тот же путь запуска.
- [x] `sudo bash scripts/xdp_ci.sh` проходит на kernel ≥ 5.10 с `bpftool` (проверено на KVM-ноде, ядра 5.15.0-203 и -204).
- [x] Прогон падает при регрессе в заголовках: возврат бага с паддингом `common.h` дал `invalid indirect read from stack`, exit 1. CI-job `xdp-kernel` добавлен, на GitHub ещё не запускался.
- [x] Нет root-прав/hping3/bpftool/netns — `SKIP: <причина>`; `--require` превращает SKIP в exit 3.
- [x] docs/testing.md описывает `xdp_ci.sh` как единый путь запуска.
## Верификация