Skip to content

Commit 8034013

Browse files
committed
feat: set max_protection for Open- & NetBSD
1 parent 499eaea commit 8034013

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/os/netbsd.rs

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ impl Iterator for QueryIter {
4646
Some(Ok(Region {
4747
base: entry.kve_start as *const _,
4848
protection: Protection::from_native(entry.kve_protection as i32),
49+
max_protection: Protection::from_native(entry.kve_max_protection as i32),
4950
shared: (entry.kve_flags & KVME_FLAG_COW as u32) == 0,
5051
size: (entry.kve_end - entry.kve_start) as _,
5152
..Default::default()

src/os/openbsd.rs

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ impl Iterator for QueryIter {
5858
let region = Region {
5959
base: self.vmentry.kve_start as *const _,
6060
protection: Protection::from_native(self.vmentry.kve_protection),
61+
max_protection: Protection::from_native(self.vmentry.max_kve_protection),
6162
shared: (self.vmentry.kve_etype & KVE_ET_COPYONWRITE) == 0,
6263
size: (self.vmentry.kve_end - self.vmentry.kve_start) as _,
6364
..Default::default()

0 commit comments

Comments
 (0)