code wiki / _hdl_build / nx_mgmt_authz_gate.nx

nx_mgmt_authz_gate.nx

buildroot/runtime/_hdl_build/nx_mgmt_authz_gate.nx

3466 B53 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic mgmt
docsdependenciesstructsconstsfunctions

about

nx_mgmt_authz_gate.nx -- PURE isolation gate for the management AUTHORIZATION tier (nx_mgmt_authz). The headline is T5: a VALID but NON-admin session (today's library reader) is FORBIDDEN (403) from a privileged route -- the exact privilege-escalation the bare ma_authed allows. Negative controls T5/T11/T12 keep it honest. No IO/socket/exec/auth. GREEN iff every rule holds. Sovereign: nx_mgmt_authz + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_mgmt_authz.nx nx_syscalls.nx nx_mgmt_authz_gate.nx

imports: nx_mgmt_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 g_w sys_write g_eq g_row g_w ↻ mz_cls mz_route_class mz_starts g_len mz_status mz_adm mz_is_admin_in mz_slice_eq g_len ↻ sys_openat_append sys_write ↻ sys_close sys_exit

structs

none

consts

none

functions

8func g_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: g_rowmain calls 1: sys_write
9func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: mz_clsmz_adm
10func g_row(name: *u8, ok: i64) -> i64
called by 1: g_eq calls 1: g_w
15func g_eq(name: *u8, got: i64, want: i64) -> i64 { var ok: i64 = 0; if got == want { ok = 1 } return g_row(name, ok) }
called by 1: main calls 1: g_row
17func mz_cls(s: *u8) -> i64 { return mz_route_class(s, g_len(s)) }
called by 1: main calls 2: mz_route_classg_len
18func mz_adm(allow: *u8, h: *u8) -> i64 { return mz_is_admin_in(allow, g_len(allow), h, 0, g_len(h)) }
called by 1: main calls 2: mz_is_admin_ing_len
20func main() -> i64