Skip to main content

reconcile_enrollment

Function reconcile_enrollment 

Source
pub fn reconcile_enrollment(
    journal_dir: &Path,
    current_policy_path: &Path,
    expected_generation: u64,
    expected_policy_hash: &str,
    output_dir: &Path,
) -> Result<ReconcileReport, ReconcileError>
Expand description

Fold the journal into the next unsigned boot-policy generation and stage it, unsigned, for the offline ceremony. NEVER signs and NEVER installs.

  • journal_dir: the intent journal directory (opened under its flock; run this where the provisioning writer is quiescent).
  • current_policy_path + expected_generation + expected_policy_hash: the OS-owned config pin (crate::config::MacBootPolicyConfig).
  • output_dir: MUST NOT exist; created atomically and never overwritten.