1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
emacs/lib-src
Philipp Stephani 27af0a3dc8 Seccomp filter: deal with arch_prctl(ARCH_CET_STATUS, ...).
The dynamic loader of GNU libc 2.28 uses this system call to
initialize CPU information, see
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/x86/cpu-features.c;hb=glibc-2.28#l28.
Simulating an older kernel by returning EINVAL should be the most
harmless rule here.

The ARCH_CET_STATUS symbol isn't yet exposed by the kernel headers;
see the FIXME at the top of
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/x86/include/asm/prctl.h;hb=glibc-2.28.

* lib-src/seccomp-filter.c (ARCH_CET_STATUS): Define if not
already present.  Inline the value because there doesn't seem to
be a header file exporting this constant yet.
(main): Make ARCH_CET_STATUS subfunction of arch_prctl return EINVAL.
2021-04-19 21:11:21 +02:00
..
ChangeLog.1 Update copyright year to 2021 2021-01-01 01:13:56 -08:00
COPYING Merge from Gnulib 2017-10-01 18:31:10 -07:00
ctags.c Port ctags+etags build to Sun C 5.12. 2014-05-18 11:57:04 -07:00
ebrowse.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
emacsclient.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
etags.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
hexl.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
make-docfile.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
make-fingerprint.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
Makefile.in Generate Seccomp filters only if we have the necessary constants. 2021-04-12 09:15:59 +02:00
movemail.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ntlib.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ntlib.h Update copyright year to 2021 2021-01-01 01:13:56 -08:00
pop.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
pop.h Update copyright year to 2021 2021-01-01 01:13:56 -08:00
rcs2log Update copyright year to 2021 2021-01-01 01:13:56 -08:00
README
seccomp-filter.c Seccomp filter: deal with arch_prctl(ARCH_CET_STATUS, ...). 2021-04-19 21:11:21 +02:00
update-game-score.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00

This directory contains the source code for the architecture-dependent
files that go in ${archlibdir}.  At present, these are mostly utility
programs used by GNU Emacs.