Skip to content

[codex] Harden pf anchor references#35

Merged
madeye merged 1 commit into
mainfrom
codex/harden-pf-anchor-references
Jun 14, 2026
Merged

[codex] Harden pf anchor references#35
madeye merged 1 commit into
mainfrom
codex/harden-pf-anchor-references

Conversation

@madeye

@madeye madeye commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • fail macOS pf setup if /etc/pf.conf cannot be read instead of loading an empty main ruleset
  • build the pf main ruleset through a tested helper that preserves existing content
  • detect rdr-anchor and filter anchor references as distinct directives so both are loaded

Tests

  • cargo fmt --all -- --check
  • cargo test firewall::pf::tests
  • cargo test
  • cargo clippy --all-targets -- -D warnings
  • git diff --check

@madeye madeye marked this pull request as ready for review June 14, 2026 03:27
@madeye madeye force-pushed the codex/harden-pf-anchor-references branch from 953f644 to 62249cd Compare June 14, 2026 03:32
@madeye madeye merged commit b74ea43 into main Jun 14, 2026
6 checks passed
@madeye madeye deleted the codex/harden-pf-anchor-references branch June 14, 2026 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant