diff options
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 127c5a3..7effa53 100644 --- a/src/config.rs +++ b/src/config.rs @@ -59,6 +59,11 @@ pub struct Config { /// the pipeline, mid-step. This is how a real crash is reproduced for I5 — /// not a caught error, an uncatchable death. Never set in production. pub shim_kill_parent: Option<String>, + /// Make the build shim plant a symlink to this path in its srcdir, so a test + /// can act out the I9 attack: an untrusted PKGBUILD smuggling bytes in from + /// outside its own staging dir. + #[serde(default)] + pub shim_plant_link: Option<String>, /// How many builds may run at once (§8.2 backpressure). Default 1, which /// also means the chroot pool only needs one warm root. pub max_concurrent_builds: usize, @@ -98,6 +103,7 @@ impl Default for Config { publish_fault: None, shim_fail: None, shim_kill_parent: None, + shim_plant_link: None, max_concurrent_builds: 1, lease_secs: 90, min_free_disk_mb: 1024, @@ -151,6 +157,9 @@ impl Config { if let Some(k) = &self.shim_kill_parent { cmd.env("AUR_SHIM_KILL_PARENT", k); } + if let Some(l) = &self.shim_plant_link { + cmd.env("AUR_SHIM_PLANT_LINK", l); + } } /// Create the directory tree the server needs. Idempotent. |
