]> git.ipfire.org Git - thirdparty/glibc.git/commit
cheri: elf: Setup per module RX and RW capabilities
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 1 Sep 2022 08:45:30 +0000 (09:45 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 12 Oct 2022 13:22:03 +0000 (14:22 +0100)
commita66d563c9e33cffbf646e1327bdd73423a10ef76
treeed8a20e6a29486ad507e5501759ca77468672214
parent74085ebc1f762c9fd70af4b99b5615dc5358dee0
cheri: elf: Setup per module RX and RW capabilities

The l_map_start and l_rw_start of the ld.so and exe comes from the auxv
since they are normally mapped by the kernel.  Some generic code had to
be modified so l_map_start is propagated and not overwritten when it is
recomputed.

The l_rw_range should exclude the relro region, but in libc.so and
ld.so this does not work: symbols are accessed before relro is applied
and then the permission should be writable.
elf/dl-map-segments.h
elf/rtld.c