code wiki / (root) / nx_ownership_ok.nx

nx_ownership_ok.nx

buildroot/runtime/nx_ownership_ok.nx

3433 B79 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic ownership
docsdependenciesstructsconstsfunctions

about

nx_ownership_ok.nx -- THE POSITIVE CONTROL for LN4/LN5 ownership (nx_ownership_gate). A GUARD THAT REFUSES EVERYTHING PASSES EVERY NEGATIVE TEST. Every tooth in the gate that asserts a REFUSAL is satisfied by a checker that refuses all source, by a broken fixture path, by a missing assembler, by NAS /tmp being noexec -- by anything at all going wrong. This file is the only thing that can tell those apart: it must COMPILE AND RUN EXIT 0 under `--ownership`, and it drags the whole imported stdlib through the mode with it, so a rung that refuses real code fails HERE. Each function is one ACCEPT the rung must not break. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_ownership_ok.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main own_ok_move_then_silence sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ own_ok_release_then_silenc sys_mmap ↻ sys_munmap own_ok_reinit_after_move sys_mmap ↻ own_ok_reinit_after_releas sys_mmap ↻ sys_munmap ↻ sys_mmap ↻ own_ok_param own_ok_move_untracked

structs

none

consts

12const OWN_OK_BYTES: i64 = 64
13const OWN_OK_MARK: i64 = 7

functions

17func own_ok_move_then_silence(seed: i64) -> i64
called by 1: main calls 1: sys_mmap
26func own_ok_release_then_silence(seed: i64) -> i64
called by 1: main calls 2: sys_mmapsys_munmap
36func own_ok_reinit_after_move(seed: i64) -> i64
called by 1: main calls 1: sys_mmap
47func own_ok_reinit_after_release(seed: i64) -> i64
called by 1: main calls 2: sys_mmapsys_munmap
59func own_ok_param(p: *u8) -> i64
called by 1: main
64func own_ok_move_untracked(p: *u8) -> i64
called by 1: main
69func main(argc: i64, argv: *i64) -> i64