Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set
ReadOnly
when unmounting LCOW mapped virtual disk (microso…
…ft#2109) When unmounting LCOW read-only container layers with layer integrity enabled, the guest checks whether the unmount request is coming for a read-only SCSI device. If that's the case, GCS also attempts to clear out the corresponding verity targets. Current implementation omits the `ReadOnly` setting in the guest request, which results in verity targets to linger even though the target has been unmounted. The security policy is also unaware that the layer has been unmounted, since it's enforced only when `ReadOnly` is set to `true`. This PR fixes this on the host side, by ensuring that the `ReadOnly` is set in the guest request. It seems, though, we may need to revisit the enforcement logic to potentially deny unmounting a read-only layer when the host is not explicitly specifies it as read-only. Signed-off-by: Maksim An <maksiman@microsoft.com>
- Loading branch information