For textrel binaries, skipping immutability on text segments is not enough:
authorderaadt <deraadt@openbsd.org>
Sat, 5 Nov 2022 10:31:16 +0000 (10:31 +0000)
committerderaadt <deraadt@openbsd.org>
Sat, 5 Nov 2022 10:31:16 +0000 (10:31 +0000)
commitca697ae8e6a38f8aeb4797b3de1c74b2a5b6001d
tree1fcb486380c8fc96ba48eaf3784dca6c79c88f9f
parentc8d3b512a24c7abd804fc6912cbeb8239253b782
For textrel binaries, skipping immutability on text segments is not enough:
It needs to be all non-writeable segments, which really means rodata.
crt0 and ld.so will need to call mimmutable() later on these regions.
ok kettenis
sys/kern/exec_elf.c