emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 0090318c61: * lib-src/seccomp-filter.c (main): Use faccessat2 o


From: Andreas Schwab
Subject: emacs-28 0090318c61: * lib-src/seccomp-filter.c (main): Use faccessat2 only if defined.
Date: Sat, 5 Mar 2022 08:43:28 -0500 (EST)

branch: emacs-28
commit 0090318c6113828688e84fc50a13a8d9c5f71c55
Author: Andreas Schwab <schwab@linux-m68k.org>
Commit: Andreas Schwab <schwab@linux-m68k.org>

    * lib-src/seccomp-filter.c (main): Use faccessat2 only if defined.
---
 lib-src/seccomp-filter.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib-src/seccomp-filter.c b/lib-src/seccomp-filter.c
index d368cbb46c..b515851010 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));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]