HomeFreeBSD

pf: fix securelevel off-by-one

Description

pf: fix securelevel off-by-one

cmd_securelevel is the securelevel at which the call should be denied.
pf (write) calls should be denied at level 3 or up (not at 2 or up as it
was), so increment these all by one.

PR: 296838
MFC after: 4 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D58377

Details

Provenance
kpAuthored on Jul 21 2026, 1:03 PM
Differential Revision
D58377: pf: fix securelevel off-by-one
Parents
rG4c4be9ab4c5e: mtest: Update my copyright on this file.
Branches
Unknown
Tags
Unknown