summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2021-04-10 18:33:41 -0700
committerSteve Arnold <nerdboy@gentoo.org>2021-04-10 18:33:41 -0700
commit78639e367e43fc80fb6bcf8bdf8c78f7723b7f11 (patch)
treeb4a7411eed7d735ee650e674c0fc2f0d7409a2d0 /net-misc/ntpsec/files
parentnet-misc/ntpsec: switch to distutils-r1, fix shebangs (diff)
downloadgentoo-78639e367e43fc80fb6bcf8bdf8c78f7723b7f11.tar.gz
gentoo-78639e367e43fc80fb6bcf8bdf8c78f7723b7f11.tar.bz2
gentoo-78639e367e43fc80fb6bcf8bdf8c78f7723b7f11.zip
net-misc/ntpsec: add missing seccomp patch for newfstatat
Closes: https://bugs.gentoo.org/779880 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Steve Arnold <nerdboy@gentoo.org>
Diffstat (limited to 'net-misc/ntpsec/files')
-rw-r--r--net-misc/ntpsec/files/ntpsec-1.2.0-move-newfstatat.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/net-misc/ntpsec/files/ntpsec-1.2.0-move-newfstatat.patch b/net-misc/ntpsec/files/ntpsec-1.2.0-move-newfstatat.patch
new file mode 100644
index 000000000000..75453c6cb5f6
--- /dev/null
+++ b/net-misc/ntpsec/files/ntpsec-1.2.0-move-newfstatat.patch
@@ -0,0 +1,20 @@
+diff --git a/ntpd/ntp_sandbox.c b/ntpd/ntp_sandbox.c
+index e66faaa8c..b2af654e5 100644
+--- a/ntpd/ntp_sandbox.c
++++ b/ntpd/ntp_sandbox.c
+@@ -349,6 +349,7 @@ int scmp_sc[] = {
+ SCMP_SYS(lseek),
+ SCMP_SYS(membarrier), /* Needed on Alpine 3.11.3 */
+ SCMP_SYS(munmap),
++ SCMP_SYS(newfstatat),
+ SCMP_SYS(open),
+ #ifdef __NR_openat
+ SCMP_SYS(openat), /* SUSE */
+@@ -451,7 +452,6 @@ int scmp_sc[] = {
+ #endif
+ #if defined(__aarch64__)
+ SCMP_SYS(faccessat),
+- SCMP_SYS(newfstatat),
+ SCMP_SYS(renameat),
+ SCMP_SYS(linkat),
+ SCMP_SYS(unlinkat),