summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/ring-tests.el
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2020-12-14 21:25:11 +0100
committerPhilipp Stephani <phst@google.com>2021-04-10 18:47:26 +0200
commitbe8328acf9aa464f848e682e63e417a18529af9e (patch)
treeb7f8191920af5e326b2a2feac9ddbeb8551fadba /test/lisp/emacs-lisp/ring-tests.el
parent53dfd85a7f971875e716a55f010ee508bce89eed (diff)
downloademacs-be8328acf9aa464f848e682e63e417a18529af9e.tar.gz
emacs-be8328acf9aa464f848e682e63e417a18529af9e.tar.bz2
emacs-be8328acf9aa464f848e682e63e417a18529af9e.zip
Add support for --seccomp command-line option.
When passing this option on GNU/Linux, Emacs installs a Secure Computing kernel system call filter. See Bug#45198. * configure.ac: Check for seccomp header. * src/emacs.c (usage_message): Document --seccomp option. (emacs_seccomp): New wrapper for 'seccomp' syscall. (load_seccomp, maybe_load_seccomp): New helper functions. (main): Potentially load seccomp filters during startup. (standard_args): Add --seccomp option. * lisp/startup.el (command-line): Detect and ignore --seccomp option. * test/src/emacs-tests.el (emacs-tests/seccomp/absent-file) (emacs-tests/seccomp/empty-file) (emacs-tests/seccomp/file-too-large) (emacs-tests/seccomp/invalid-file-size): New unit tests. (emacs-tests--with-temp-file): New helper macro. * etc/NEWS: Document new --seccomp option.
Diffstat (limited to 'test/lisp/emacs-lisp/ring-tests.el')
0 files changed, 0 insertions, 0 deletions