projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bb01a4
)
* lib-src/seccomp-filter.c (main): Use faccessat2 only if defined.
author
Andreas Schwab
<schwab@linux-m68k.org>
Sat, 5 Mar 2022 12:44:08 +0000
(13:44 +0100)
committer
Andreas Schwab
<schwab@linux-m68k.org>
Sat, 5 Mar 2022 13:41:22 +0000
(14:41 +0100)
lib-src/seccomp-filter.c
patch
|
blob
|
history
diff --git
a/lib-src/seccomp-filter.c
b/lib-src/seccomp-filter.c
index d368cbb46c850d6a80d9beba5817f5869d578c63..b51585101044bc5ea9a8f5b7c6d2c95a3e7116d0 100644
(file)
--- 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));