# DF-2487 -- mpt modifying ioctls allowed via read-only fd

Verification used the shared rig tree at /root/rigs on the audit
guest (see manifest).  The rig for this finding: dfv_mpt  (rig.c = harness,
gen.sh = verbatim extractor, dfv_*_extract.h = generated production text).
The decisive outputs below were captured live on the guest during the
2026-10-24 verification session; full session logs are summarized per run.


## Build
    sh build.sh            # extracts verbatim driver text + builds the KLD

## Run (guest, root)
    kldload ./dfv_rig.ko
(compile validation only - no MPT hardware on the guest)

## Expected
mpt.ko built clean with the fix (compile validation); source trace of both dispatch sites.

## Fix validation
fix.diff adds FWRITE checks to MPTIO_WRITE_CFG_PAGE and MPTIO_RAID_ACTION; module builds clean.

Verdict: not_reproduced / impact=none (see verdict.json, VERDICT.md)
