]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
gcore: Don't hardcode VM write permissions.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 6 Jun 2022 23:43:02 +0000 (16:43 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 13 Jul 2022 16:18:43 +0000 (09:18 -0700)
commit4f8a3bb601adbca70d590593a53699dca590226d
treeab254d2810fdf18f471847fcf20711bfd55649b6
parent558cb98269d9ef21e41a4c28ce5a1af032ab61ea
gcore: Don't hardcode VM write permissions.

This ensures read-only PT_LOAD segments are not marked as writable in
the phdr flags.

Reviewed by: markj
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D35398

(cherry picked from commit 81c857dd7e6a83924a8e45684fb94024fc3c929b)
usr.bin/gcore/elfcore.c