summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-18 22:34:16 +0000
committeraur-build <aur-build@localhost>2026-11-18 22:34:16 +0000
commit632a08c8543f0db533efc7bfb6728b50a77ae3d8 (patch)
tree318fb224b15d09913e1111b8cdb80d9c578a8995 /src/lib.rs
parent8835a0a86c82d922a2d674f3543c331dc9adb9e5 (diff)
downloadaur-build-632a08c8543f0db533efc7bfb6728b50a77ae3d8.tar.gz
aur-build-632a08c8543f0db533efc7bfb6728b50a77ae3d8.zip
sandbox: the seam between the pipeline and where build code runs
The step machine spawned its own subprocesses, which quietly made "build code runs on this machine, inside a devtools chroot, under §14's sudo rules" a pipeline fact rather than a deployment fact. Every build subprocess now goes through SandboxBackend: acquire a lease, run argv shaped commands (never a shell string), move content-addressed blobs, destroy. The loopback backend is today's behavior wearing the interface - same child_env shim protocol, same captured output - which is why the shim suite passes untouched: a step that cannot tell loopback from a remote sandbox is the property under test.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9048ff8..d4e69de 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,6 +18,7 @@ pub mod pkginfo;
pub mod pkgver;
pub mod recipe;
pub mod review;
+pub mod sandbox;
/// The §16a fake toolchain: stand-ins for `makepkg`, `mkarchroot`, `gpg`,
/// `repo-add` and `pacman` so the whole step machine runs without root, network
/// or an Arch chroot.