aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/imgact_elf.c
diff options
context:
space:
mode:
authorPaul Saab <ps@FreeBSD.org>2000-02-28 04:10:35 +0000
committerPaul Saab <ps@FreeBSD.org>2000-02-28 04:10:35 +0000
commit9730a5daab56ddfd4d6d0907665f275aae2b0b45 (patch)
tree4ac8b6b9505aa6f8c9d0b1f1a6c371d68b9185f0 /sys/kern/imgact_elf.c
parent76e964f1f5256814e1c6b7e3fd104dcb72d3d6b4 (diff)
downloadsrc-9730a5daab56ddfd4d6d0907665f275aae2b0b45.tar.gz
src-9730a5daab56ddfd4d6d0907665f275aae2b0b45.zip
Notes
Diffstat (limited to 'sys/kern/imgact_elf.c')
-rw-r--r--sys/kern/imgact_elf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index 45d33df8e3bf..872988815252 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -816,6 +816,13 @@ each_writable_segment(p, func, closure)
(VM_PROT_READ|VM_PROT_WRITE))
continue;
+ /*
+ ** Dont include mmapped data in the coredump if MAP_NOCORE
+ ** is set in mmap(2).
+ */
+ if (entry->eflags & MAP_ENTRY_NOCOREDUMP)
+ continue;
+
if ((obj = entry->object.vm_object) == NULL)
continue;