nx_container_image_test.nx
buildroot/runtime/nx_container_image_test.nx
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
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
structs
| none |
consts
| 13 | const CLONE_NEWNS: i64 = 0x00020000 |
| 14 | const CLONE_NEWUTS: i64 = 0x04000000 |
| 15 | const CLONE_NEWIPC: i64 = 0x08000000 |
functions
| 17 | func main(argc: i64, av_in: *i64) -> i64 calls 1: nx_container_run |