summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-11-14 08:47:06 +0000
committerSam James <sam@gentoo.org>2021-11-14 08:48:52 +0000
commit96b3c7a5f76e2d6f66f307816f06cda43fad1a7b (patch)
tree28c431c7704e51584c202d21110231e0c21d46cf /net-misc/ntpsec/files
parentdev-python/marshmallow: Remove old (diff)
downloadgentoo-96b3c7a5f76e2d6f66f307816f06cda43fad1a7b.tar.gz
gentoo-96b3c7a5f76e2d6f66f307816f06cda43fad1a7b.tar.bz2
gentoo-96b3c7a5f76e2d6f66f307816f06cda43fad1a7b.zip
net-misc/ntpsec: allow clone3 for glibc-2.34 (seccomp filter fix)
Closes: https://bugs.gentoo.org/823692 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/ntpsec/files')
-rw-r--r--net-misc/ntpsec/files/ntpsec-1.2.1-seccomp-glibc-2-3-4.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-misc/ntpsec/files/ntpsec-1.2.1-seccomp-glibc-2-3-4.patch b/net-misc/ntpsec/files/ntpsec-1.2.1-seccomp-glibc-2-3-4.patch
new file mode 100644
index 000000000000..65b718285a8d
--- /dev/null
+++ b/net-misc/ntpsec/files/ntpsec-1.2.1-seccomp-glibc-2-3-4.patch
@@ -0,0 +1,19 @@
+https://bugs.gentoo.org/823692
+
+From 170d60b7e269154fb108bb4b010ee5ee0110bf2d Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sun, 14 Nov 2021 08:44:28 +0000
+Subject: [PATCH] ntpd/ntp_sandbox.c: allow clone3 in seccomp filter for
+ glibc-2.34
+
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/ntpd/ntp_sandbox.c
++++ b/ntpd/ntp_sandbox.c
+@@ -403,6 +403,7 @@ int scmp_sc[] = {
+ * rather than generate a trap.
+ */
+ SCMP_SYS(clone), /* threads */
++ SCMP_SYS(clone3),
+ SCMP_SYS(kill), /* generate signal */
+ SCMP_SYS(madvise),
+ SCMP_SYS(mprotect),