code wiki / _hdl_build / nx_galx_authz_gate.nx

nx_galx_authz_gate.nx

buildroot/runtime/_hdl_build/nx_galx_authz_gate.nx

4349 B66 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic galx
docsdependenciesstructsconstsfunctions

about

nx_galx_authz_gate.nx -- proves the gallery access model on the REAL catalog (galx_vid_rules.tsv + real paths): the cam recordings (r) and the NSFW reddit/tumblr/redgifs (v) are OWNER-ONLY (only elder, from anywhere); SFW media (m) maps to family. Uses the actual rules file + real example paths from galx_vid_paths.tsv. The SFW movie library (Zatoichi/Mr Bean) is a SEPARATE area (nx_media_server) served at family level. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_galx_authz.nx nx_syscalls.nx nx_galx_authz_gate.nx

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

main zw sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit galx_cat_of zslen zrow zw ↻ sys_mmap ↻ sys_write ↻ galx_cat_level galx_can_view galx_cat_of ↻ galx_cat_level ↻ sys_write ↻ sys_openat_append sys_close ↻

structs

none

consts

none

functions

8func zw(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: zrowmain calls 1: sys_write
9func zslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
10func zrow(id: i64, ok: i64, what: *u8) -> i64 { zw("GZROW " as *u8); let b: *u8=sys_mmap(8); b[0]=(48+id) as u8; sys_write(1,b,1); zw(" " as *u8); if ok==1 { zw("PASS " as *u8) } else { zw("FAIL " as *u8) } zw(what); zw("\n" as *u8); return ok }
called by 1: main calls 3: zwsys_mmapsys_write
12func main() -> i64