about summary refs log tree commit diff
path: root/sysdeps/x86_64/dl-plt-rewrite.h
Commit message (Collapse)AuthorAgeFilesLines
* x86-64: Check if mprotect works before rewriting PLTH.J. Lu2024-01-151-0/+25
Systemd execution environment configuration may prohibit changing a memory mapping to become executable: MemoryDenyWriteExecute= Takes a boolean argument. If set, attempts to create memory mappings that are writable and executable at the same time, or to change existing memory mappings to become executable, or mapping shared memory segments as executable, are prohibited. When it is set, systemd service stops working if PLT rewrite is enabled. Check if mprotect works before rewriting PLT. This fixes BZ #31230. This also works with SELinux when deny_execmem is on. Reviewed-by: Carlos O'Donell <carlos@redhat.com>