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
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')
-rw-r--r--net-misc/ntpsec/files/ntpsec-1.2.0-move-newfstatat.patch20
-rw-r--r--net-misc/ntpsec/ntpsec-1.2.0-r1.ebuild1
2 files changed, 21 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),
diff --git a/net-misc/ntpsec/ntpsec-1.2.0-r1.ebuild b/net-misc/ntpsec/ntpsec-1.2.0-r1.ebuild
index 640727916e0f..28c6723abb7c 100644
--- a/net-misc/ntpsec/ntpsec-1.2.0-r1.ebuild
+++ b/net-misc/ntpsec/ntpsec-1.2.0-r1.ebuild
@@ -60,6 +60,7 @@ DEPEND="${CDEPEND}
PATCHES=(
"${FILESDIR}/${PN}-1.1.8-fix-missing-scmp_sys-on-aarch64.patch"
"${FILESDIR}/${PN}-1.1.9-remove-asciidoctor-from-config.patch"
+ "${FILESDIR}/${PN}-1.2.0-move-newfstatat.patch"
)
WAF_BINARY="${S}/waf"