From: Philipp Stephani Date: Fri, 9 Dec 2022 18:32:14 +0000 (+0100) Subject: Support newer glib versions (Bug#59061) X-Git-Tag: emacs-29.0.90~1276 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=940d9070e97858fdb6c0d84fc5617b8c10dab0ba;p=emacs.git Support newer glib versions (Bug#59061) * lib-src/seccomp-filter.c (main): Allow pidfd_open system call --- diff --git a/lib-src/seccomp-filter.c b/lib-src/seccomp-filter.c index 7e54b878a22..69b56aed5c5 100644 --- a/lib-src/seccomp-filter.c +++ b/lib-src/seccomp-filter.c @@ -342,6 +342,8 @@ main (int argc, char **argv) RULE (SCMP_ACT_ALLOW, SCMP_SYS (eventfd2)); RULE (SCMP_ACT_ALLOW, SCMP_SYS (wait4)); RULE (SCMP_ACT_ALLOW, SCMP_SYS (poll)); + RULE (SCMP_ACT_ALLOW, SCMP_SYS (pidfd_open), + SCMP_A1_32 (SCMP_CMP_EQ, 0)); /* Don't allow creating sockets (network access would be extremely dangerous), but also don't crash. */