code wiki / _hdl_build / nx_audio_gate_proof_test.nx

nx_audio_gate_proof_test.nx

buildroot/runtime/_hdl_build/nx_audio_gate_proof_test.nx

3369 B68 linesdepth 16pulls 45 transitivereach 0 importersview sourcekind gate/prooftopic audio
docsdependenciesstructsconstsfunctions

about

nx_audio_gate_proof_test.nx -- prove the /audio protection DETERMINISTICALLY. The opaque daemon's GET /audio serves the page iff olg_whoami(token)==NX_MAUTH_OK. This gate runs that exact decision in-process: register -> login -> a VALID session passes (would SERVE); an EMPTY or BOGUS token is rejected (would 401). No daemon/network -> no flakiness. expect_exit: 0.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_opaque_login.nx nx_audio_gate_proof_test.nx

imports: nx_syscalls.nxnx_opaque_login.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ w sys_write ↻ olg_ctx_setup olg_ctx_setup_ttl nx_uas_server_keys_load_or sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close _uas_hex_dec _uas_nib nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd ↻ sys_read ↻ sys_close ↻ nx_opq_derive_keypair sys_mmap ↻ u256_alloc

structs

none

consts

none

functions

10func w(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 2: chkmain calls 1: sys_write
11func wn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
20func chk(cond: i64, pass: *i64, fail: *i64, label: *u8) -> i64
called by 1: main calls 1: w
26func main() -> i64