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

@ -11,7 +11,8 @@ privileges=… driver=… expected_mode=…` — её же печатает `ram
(общий код `EnvironmentReport::summary_fields`). `expected_mode` — предсказание по
таблице драйверов; реальный режим логируется после attach (`native (drv)` или
`generic (skb)`). Ошибка attach содержит вердикт и `hint:` с рекомендацией
(контейнер lxc/openvz → нужна KVM-VDS; не root → CAP_BPF/CAP_NET_ADMIN; нет BTF → ядро с
(контейнер lxc/openvz → нужна KVM-VDS; нет CAP_NET_ADMIN/CAP_BPF/CAP_PERFMON — даже у root в
контейнере, `privileges=missing-xdp-caps` → `docker run --cap-add …`; нет BTF → ядро с
`CONFIG_DEBUG_INFO_BTF=y`).
```bash