code wiki / _hdl_build / nx_media_path_gate.nx
nx_media_path_gate.nx
buildroot/runtime/_hdl_build/nx_media_path_gate.nx
about
nx_media_path_gate.nx -- proves the /media (everyone/family) file allowlist: SFW library paths are served,
but the OWNER-ONLY recordings/NSFW (/mnt/nas_logging, served only by /gallery) are DENIED even by direct path.
Operator 2026-06-17: /media live for everyone, /gallery (owner-only) is the other thread. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_galx_authz.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
| none |
functions
| 7 | func mpw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 8 | func mpslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 9 | func mprow(id: i64, ok: i64, what: *u8) -> i64 { mpw("MPROW " as *u8); let b: *u8=sys_mmap(8); b[0]=(48+id) as u8; sys_write(1,b,1); mpw(" " as *u8); if ok==1 { mpw("PASS " as *u8) } else { mpw("FAIL " as *u8) } mpw(what); mpw("\n" as *u8); return ok } |
| 10 | func mpok(p: *u8) -> i64 { return galx_media_path_ok(p, mpslen(p)) } |
| 12 | func main() -> i64 |