Library RELRO sections are excluded from the immutable list, because ld.so
authorderaadt <deraadt@openbsd.org>
Sun, 6 Nov 2022 11:38:54 +0000 (11:38 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 6 Nov 2022 11:38:54 +0000 (11:38 +0000)
commit118353ea9762e3cd7c942b10c3e5d5419752f6e5
treec1ff326d6894774383fbfed8b9d5eb85030abe85
parent3349f56c14413839727e79e7cdae7863616596a4
Library RELRO sections are excluded from the immutable list, because ld.so
tweaks them quite late.  _dl_relro() is called when that work is done, and
the final mprotect PROT_READ happens.  Then we can make mark it immutable.
ok kettenis
libexec/ld.so/loader.c