mirror of
https://github.com/jmcorgan/fips.git
synced 2026-08-09 00:04:54 +00:00
Merge branch 'master' into next
This commit is contained in:
@@ -39,6 +39,11 @@ RUN printf '%s\n' \
|
||||
COPY fips fipsctl fipstop fips-gateway /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/fips /usr/local/bin/fipsctl /usr/local/bin/fipstop /usr/local/bin/fips-gateway
|
||||
|
||||
# Mirror systemd's RuntimeDirectory=fips so the daemon's resolver picks
|
||||
# /run/fips/control.sock — matches production layout and the chaos sim
|
||||
# harness probe path (testing/chaos/sim/control.py).
|
||||
RUN mkdir -p /run/fips
|
||||
|
||||
# Static web page for HTTP server (chaos/static modes)
|
||||
RUN printf 'Fuck IPs!\n' > /root/index.html
|
||||
|
||||
|
||||
@@ -238,7 +238,7 @@ fi
|
||||
# ── Drop-counter sanity ────────────────────────────────────────────────
|
||||
log "Drop counter incremented (case a should have ticked it)"
|
||||
DROP_PKTS="$(docker exec "$CONTAINER_B" nft list table inet fips \
|
||||
| awk '/counter packets/ {print $3; exit}')"
|
||||
| awk '/counter packets/ && !seen { print $3; seen=1 }')"
|
||||
if [ -z "${DROP_PKTS:-}" ] || [ "$DROP_PKTS" -lt 1 ]; then
|
||||
fail "drop counter is $DROP_PKTS — case (a) should have produced drops"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user