emacs/lib-src
Paul Eggert 345de32a5d Port bwrap/allows-stdout test to Ubuntu 22.04.1
Without this patch, Ubuntu 22.04.1 x86-64 "make check" reports a
failure in test/src/emacs-tests.el’s
emacs-tests/bwrap/allows-stdout.  One can reproduce the bug
without using the Emacs executable, by running this script:

  #!/bin/bash
  export LC_ALL=C
  exec strace -f -o /tmp/tr bwrap --ro-bind / / --seccomp 20 -- \
    cat /dev/null 20< lib-src/seccomp-filter-exec.bpf

This script exits with status 159, because "cat" didn’t get
started (it got a SIGSYS signal early on).

The command "journalctl -g SECCOMP" indicated that rseq (syscall
334) was the problem.  This syscall is issued by
/lib64/ld-linux-x86-64.so.2 before ‘main’ is called.

There’s another problem with the clone3 syscall, which is used by
pthread_create starting in glibc 2.34.  pthread_create is called
by g_child_watch_source_new, which is called by
init_process_emacs.

* lib-src/seccomp-filter.c (main): Allow rseq, clone3.  This
causes the test to pass.  Perhaps a fancier, more accurate patch
could be written by someone who has the time.
2022-10-10 12:36:38 -07:00
..
be_resources.cc Fix Emacs icon not appearing on Haiku 2022-01-17 11:09:50 +00:00
ChangeLog.1 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05: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 ebrowse dumping need not return int 2022-04-08 17:33:15 -07:00
emacsclient.c Fix several printfs for 32 bit systems 2022-09-10 09:35:49 +08:00
etags.c * lib-src/etags.c: Remove XEmacs support. 2022-08-07 14:50:05 +02:00
hexl.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
make-docfile.c Revert "Revert part of 59732a83c8 to fix bug#52969" 2022-08-03 17:02:25 -04:00
make-fingerprint.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
Makefile.in Remove hard-coded path to pwd in Makefiles. 2022-09-28 16:30:47 +02:00
movemail.c Do not include <attribute.h> from <config.h> 2022-03-08 18:51:17 -08:00
ntlib.c Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
ntlib.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
pop.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
pop.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
rcs2log ; Run set-copyright from admin.el 2022-01-01 09:52:06 -08:00
README
seccomp-filter.c Port bwrap/allows-stdout test to Ubuntu 22.04.1 2022-10-10 12:36:38 -07:00
update-game-score.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05: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.