summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2022-03-06 06:32:23 +0100
committerStefan Kangas <stefan@marxist.se>2022-03-06 06:32:23 +0100
commit200627c255c4bf3f050f7f75fb3e4e100fe97bfa (patch)
treebd7f448f390abdaeda2ecd00d4158fd0abc8df2e /lib-src
parente09bbfc37d81d58af3412ae1b56dc2e620218653 (diff)
parent0090318c6113828688e84fc50a13a8d9c5f71c55 (diff)
downloademacs-200627c255c4bf3f050f7f75fb3e4e100fe97bfa.tar.gz
Merge from origin/emacs-28
0090318c61 * lib-src/seccomp-filter.c (main): Use faccessat2 only if ... 3bb01a499b Fix regression in derived-mode-init-mode-variables
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/seccomp-filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib-src/seccomp-filter.c b/lib-src/seccomp-filter.c
index d368cbb46c8..b5158510104 100644
--- a/lib-src/seccomp-filter.c
+++ b/lib-src/seccomp-filter.c
@@ -240,7 +240,9 @@ main (int argc, char **argv)
should be further restricted using mount namespaces. */
RULE (SCMP_ACT_ALLOW, SCMP_SYS (access));
RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat));
+#ifdef __NR_faccessat2
RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
+#endif
RULE (SCMP_ACT_ALLOW, SCMP_SYS (stat));
RULE (SCMP_ACT_ALLOW, SCMP_SYS (stat64));
RULE (SCMP_ACT_ALLOW, SCMP_SYS (lstat));