code wiki / _hdl_build / nx_media_e2e_gate.nx
nx_media_e2e_gate.nx
buildroot/runtime/_hdl_build/nx_media_e2e_gate.nx
about
nx_media_e2e_gate.nx -- SOVEREIGN end-to-end test of nishifamily.com/media (no shells/curl). Arms a realm +
registers a FAMILY member via real Modern Auth, forks the REAL nx_media_server, then drives it over raw
sockets: family login works; the SFW library path passes the allowlist; the OWNER-ONLY recordings/NSFW
(/mnt/nas_logging) are DENIED (403) even WITH a valid family token; and no token -> 401 (the wall).
PRE: ./_offc/nx_sov_build_run.elf nx_media_server --build-only (produces /tmp/nx_media_server.sov.elf)
Sovereign: nx_http_client + nx_modern_auth_flow + nx_syscalls. license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_http_client.nxnx_connect.nxnx_modern_auth_flow.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 12 | const ME_PORT: i64 = 8795 |
| 13 | const ME_DAEMON: *u8 = "/tmp/nx_media_server.sov.elf" as *u8 |
functions
| 15 | func me_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 16 | func me_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: main |
| 17 | func me_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){d[o+i]=s[i];i=i+1} return o+i } |
| 18 | func me_catn(d: *u8, o: i64, s: *u8, n: i64) -> i64 { var i: i64=0; while i<n{d[o+i]=s[i];i=i+1} return o+n } |
| 19 | func me_has(buf: *u8, n: i64, s: *u8) -> i64 called by 1: main |
| 26 | func me_row(name: *u8, ok: i64) -> i64 { if ok==1 { me_w(" PASS " as *u8) } else { me_w(" FAIL " as *u8) } me_w(name); me_w("\n" as *u8); return ok } |
| 27 | func me_trunc(p: *u8) -> i64 { let fd: i64=sys_openat_wr(p, 0x180); if fd>=0 { sys_close(fd) } return 0 } |
| 28 | func me_extract_token(resp: *u8, n: i64, out: *u8) -> i64 called by 1: main |
| 38 | func me_send(reqbuf: *u8, reqlen: i64, resp: *u8, cap: i64) -> i64 called by 1: main calls 7: sys_mmapnx_http_client_sockaddr_ipv4sys_socketnx_connect_boundedsys_closesys_write+1 |
| 50 | func me_getfile(req: *u8, path: *u8, tok: *u8, toklen: i64) -> i64 |
| 59 | func main() -> i64 |