eBPF-based security platform
proofs: name upatch_load() as the load the Lean model follows
Daniel Borkmanna84bcc16d159
diff --git a/testing/proofs/lean4/Shirudo/UpatchLoad.lean b/testing/proofs/lean4/Shirudo/UpatchLoad.leanindex fbac4d1b..b10d3b08 100644--- a/testing/proofs/lean4/Shirudo/UpatchLoad.lean+++ b/testing/proofs/lean4/Shirudo/UpatchLoad.lean@@ -9,8 +9,9 @@ restore of builtin-init.c, against crashes, concurrent commands and root.`image_enter()` admits an upatch command only once this boot's configactivation is complete, which `image_boot_complete()` does after `init`-restored the archive and wrote its record. A load (`cmd_upatch_load()`)-takes the register lock (`eventlog_lock()`) and runs the undo pass+restored the archive and wrote its record. A load (`upatch_load()`, which+`upatch load` and a package install run) takes the register lock+(`eventlog_lock()`) and runs the undo pass(`undo_unmeasured()`). The pass folds this boot's records into themeasured set (`measured_set_boot()`), only when they fold to theregister's value, and removes every pin directory whose@@ -18,7 +19,8 @@ xattr the set does not hold, with the archive of the same name(`measured_unmeasured_pins()`, `undo_load()`), then every labeled archivefile the set does not hold (`measured_unmeasured_archives()`), and refusesthe command when it could not read the records, scan or remove. The load-then refuses a name whose pin directory carries a payload xattr, pins+then refuses a name whose pin directory carries a payload xattr, or ends+as done where an install finds its own payload there, pins(`attach_and_pin_progs()`), sets the payload xattr (`set_pin_payload()`,whose failure takes the pins out and fails the load), archives(`persist_upatch()`), extends the register (`chain_extend()`) and appends