code wiki / _hdl_build / nx_mgmt_authz_gate.nx
nx_mgmt_authz_gate.nx
buildroot/runtime/_hdl_build/nx_mgmt_authz_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 8 | func 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 } |
| 9 | func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 10 | func g_row(name: *u8, ok: i64) -> i64 |
| 15 | func g_eq(name: *u8, got: i64, want: i64) -> i64 { var ok: i64 = 0; if got == want { ok = 1 } return g_row(name, ok) } |
| 17 | func mz_cls(s: *u8) -> i64 { return mz_route_class(s, g_len(s)) } |
| 18 | func mz_adm(allow: *u8, h: *u8) -> i64 { return mz_is_admin_in(allow, g_len(allow), h, 0, g_len(h)) } |
| 20 | func main() -> i64 |