code wiki / (root) / nx_drm_audit_test.nx

nx_drm_audit_test.nx

buildroot/runtime/nx_drm_audit_test.nx

3484 B51 linesdepth 2pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_drm_audit_test.nx -- gate for the DRM auditor (nx_drm_audit). Grounded in the researcher's cited cases. Unique exit codes per invariant: 1-4 Brother (chipless TN-630, says EMPTY but our coverage says 99.91%) -> FAKE_EMPTY + FIRMWARE_BLOCK, NOT chip; bypass = Continue + refuse-firmware (exactly what we LIVE-PROVED on the real Brother) 10-12 chipped HP fake-empty -> FAKE_EMPTY + FIRMWARE_BLOCK + CHIP; chip bypass = external reset 20-21 NEG control: genuinely empty (coverage also 0) -> NO fake-empty cry (honest), firmware-block only 30 NEG: no vendor-block + chipless + not-empty -> NO DRM 40-44 NEVER-BRICK (#26) proven mechanically: every recommended bypass writes ZERO firmware; the dangerous firmware-downgrade action is flagged 1 (so the check isn't trivially-always-0) and is NEVER emitted expect_exit: 0 ; license_tier: ORIGINAL ; genealogy_id: project-printer-management-ipp-sclass-2026-06-20

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_drm_audit.nx nx_drm_audit_test.nx

imports: nx_syscalls.nxnx_drm_audit.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_drm_classify nx_drm_vendor_blocks nx_drm_bypass_for nx_drm_flag_count nx_drm_bypass_writes_firmw t_puts sys_write

structs

none

consts

none

functions

15func t_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
17func main() -> i64