Skip to content

Commit a57d677

Browse files
committed
Make the snapshot page table mapping readonly
These were already being CoW'd. Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
1 parent 6cfebad commit a57d677

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hyperlight_host/src/sandbox/snapshot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ impl Snapshot {
217217
len: (pt_buf.size() - pt_size_mapped) as u64,
218218
kind: MappingKind::BasicMapping(BasicMapping {
219219
readable: true,
220-
writable: true,
220+
writable: false,
221221
executable: false,
222222
}),
223223
};

0 commit comments

Comments
 (0)