Go to file
H.J. Lu 457bd9cf2e x86-64: Check if mprotect works before rewriting PLT
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>
2024-01-15 06:59:23 -08:00
advisories
argp
assert
benchtests Benchtests: Increase benchmark iterations 2024-01-12 16:00:28 +00:00
bits Implement C23 <stdbit.h> 2024-01-03 12:07:14 +00:00
catgets Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
ChangeLog.old
conform Remove ia64-linux-gnu 2024-01-08 17:09:36 -03:00
csu
ctype
debug debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol. 2024-01-12 15:21:26 +01:00
dirent
dlfcn
elf elf: Fix tst-nodeps2 test failure. 2024-01-10 14:08:26 -05:00
gmon Remove ia64-linux-gnu 2024-01-08 17:09:36 -03:00
gnulib
hesiod
htl
hurd hurd: Declare _hurd_intr_rpc_msg* with protected visibility 2024-01-03 21:59:54 +01:00
iconv Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
iconvdata
include Implement C23 <stdbit.h> 2024-01-03 12:07:14 +00:00
inet
intl
io
libio libio: Check remaining buffer size in _IO_wdo_write (bug 31183) 2024-01-02 14:36:17 +01:00
locale Define ISO 639-3 "glk" (Gilaki) 2024-01-11 17:01:44 +01:00
localedata localedata/unicode-gen/utf8_gen.py: fix Hangul syllable name 2024-01-14 11:42:28 +01:00
login Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
mach mach: Drop some unnecessary vm_param.h includes 2024-01-03 21:59:54 +01:00
malloc Make __getrandom_nocancel set errno and add a _nostatus version 2024-01-12 14:23:11 +01:00
manual i386: Fail if configured with --enable-cet 2024-01-09 13:55:51 -03:00
math math: remove exp10 wrappers 2024-01-12 16:02:12 +00:00
mathvec
misc
nis
nptl Remove ia64-linux-gnu 2024-01-08 17:09:36 -03:00
nptl_db
nscd Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nss getaddrinfo: translate ENOMEM to EAI_MEMORY (bug 31163) 2024-01-02 11:10:42 +01:00
po Incorporate translations (zh_CN) 2024-01-11 19:47:31 +01:00
posix Omit regex.c pragmas no longer needed 2024-01-01 10:53:40 -08:00
resolv resolv: Fix endless loop in __res_context_query 2024-01-11 16:38:25 +01:00
resource
rt
scripts Fix deprecated utcnow() usage in build-many-glibcs.py 2024-01-10 13:02:16 +00:00
setjmp
signal
socket
soft-fp
stdio-common
stdlib stdlib: Fix stdbit.h with -Wconversion for clang 2024-01-05 14:52:29 -03:00
string string: Add additional output in test-strchr failure 2024-01-01 21:06:57 -08:00
sunrpc
support Remove ia64-linux-gnu 2024-01-08 17:09:36 -03:00
sysdeps x86-64: Check if mprotect works before rewriting PLT 2024-01-15 06:59:23 -08:00
sysvipc
termios
time
timezone
wcsmbs
wctype
.clang-format
.gitattributes
.gitignore
abi-tags
aclocal.m4
config.h.in
config.make.in
configure
configure.ac
CONTRIBUTED-BY
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL i386: Fail if configured with --enable-cet 2024-01-09 13:55:51 -03:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig
Makefile
Makefile.help
Makefile.in
Makerules Remove installed header rule on $(..)include/%.h 2024-01-09 10:35:37 -08:00
NEWS aarch64: Add NEWS entry about libmvec for 2.39 2024-01-15 14:54:30 +00:00
o-iterator.mk
README Remove ia64-linux-gnu 2024-01-08 17:09:36 -03:00
Rules
SECURITY.md
SHARED-FILES
shlib-versions
test-skeleton.c
version.h

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu and x86_64-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arc*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	loongarch64-*-linux-gnu Hardware floating point, LE only.
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	or1k-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv32-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see https://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at https://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see https://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.