Enforce exact recovery ownership before cold start
This commit is contained in:
parent
f21a847991
commit
2bc5982a62
1 changed files with 1076 additions and 238 deletions
|
|
@ -107,6 +107,7 @@ impl<'store> SandboxCoordinator<'store> {
|
|||
generation_id: GenerationId,
|
||||
container_id: ContainerId,
|
||||
runtime_root: &Path,
|
||||
runtime_root_identity: MountIdentity,
|
||||
bundle_digest: BundleDigest,
|
||||
host_coordinator: PidfsProcessIdentityV1,
|
||||
) -> Result<(), SandboxCoordinatorError> {
|
||||
|
|
@ -123,6 +124,7 @@ impl<'store> SandboxCoordinator<'store> {
|
|||
let ownership = SandboxOwnership {
|
||||
container_id: Some(container_id),
|
||||
runtime_root: Some(HostPath::new(runtime_root.as_os_str().as_bytes().to_vec())),
|
||||
runtime_root_identity: Some(runtime_root_identity),
|
||||
bundle_digest: Some(bundle_digest),
|
||||
host_coordinator: PersistedHostProcessOwnership::committed(host_coordinator),
|
||||
runtime_supervisor: PersistedHostProcessOwnership::unassigned(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue