code wiki / (root) / nx_container_image_test.nx

nx_container_image_test.nx

buildroot/runtime/nx_container_image_test.nx

2279 B55 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic container
docsdependenciesstructsconstsfunctions

about

nx_container_image_test.nx -- rootless container running a REAL IMAGE (a prepared rootfs directory, not rootfs="/"). Proves the full oracle-container path: CLONE_NEWUSER + uid/gid map -> unshare(mount|uts|ipc) -> chroot into /tmp/oraclerootfs -> mount /proc -> execve /bin/exit42 (a static sovereign ELF placed inside the image) -> capture 42. This is the racing-bench oracle lane v2.5: a benchmark binary spins up in an isolated sovereign image as an unprivileged user, runs, and the jail tears down with the process. The harness prepares /tmp/oraclerootfs/bin/exit42 before running this. expect_exit: 0. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_syscalls_x86_64.nx nx_container.nx nx_container_image_test.nx

imports: nx_syscalls_x86_64.nxnx_container.nx

imported by: nobody (leaf or entry point)

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

main nx_container_run sys_fork _child_setup_and_exec sys_unshare sys_chroot _path_proc_abs _str_proc _str_none sys_mount sys_execve sys_wait4

structs

none

consts

13const CLONE_NEWNS: i64 = 0x00020000
14const CLONE_NEWUTS: i64 = 0x04000000
15const CLONE_NEWIPC: i64 = 0x08000000

functions

17func main(argc: i64, av_in: *i64) -> i64