Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107797858
D35398.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
531 B
Referenced Files
None
Subscribers
None
D35398.diff
View Options
diff --git a/usr.bin/gcore/elfcore.c b/usr.bin/gcore/elfcore.c
--- a/usr.bin/gcore/elfcore.c
+++ b/usr.bin/gcore/elfcore.c
@@ -624,7 +624,9 @@
errx(1, "out of memory");
ent->start = (vm_offset_t)kve->kve_start;
ent->end = (vm_offset_t)kve->kve_end;
- ent->protection = VM_PROT_READ | VM_PROT_WRITE;
+ ent->protection = VM_PROT_READ;
+ if ((kve->kve_protection & KVME_PROT_WRITE) != 0)
+ ent->protection |= VM_PROT_WRITE;
if ((kve->kve_protection & KVME_PROT_EXEC) != 0)
ent->protection |= VM_PROT_EXECUTE;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 6:53 AM (20 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15930905
Default Alt Text
D35398.diff (531 B)
Attached To
Mode
D35398: gcore: Don't hardcode VM write permissions.
Attached
Detach File
Event Timeline
Log In to Comment