From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ntpsec/, net-misc/ntpsec/files/
Date: Thu, 7 Apr 2022 02:07:19 +0000 (UTC) [thread overview]
Message-ID: <1649297229.41a34181245776801261388750b72b3418518fd0.sam@gentoo> (raw)
commit: 41a34181245776801261388750b72b3418518fd0
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 7 02:06:57 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 7 02:07:09 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41a34181
net-misc/ntpsec: fix seccomp filter w/ glibc 2.35 (rseq)
Closes: https://bugs.gentoo.org/833274
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../ntpsec-1.2.1-seccomp-rseq-glibc-2.35.patch | 25 ++++++++++++++++++++++
...psec-1.2.1-r1.ebuild => ntpsec-1.2.1-r2.ebuild} | 3 ++-
2 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/net-misc/ntpsec/files/ntpsec-1.2.1-seccomp-rseq-glibc-2.35.patch b/net-misc/ntpsec/files/ntpsec-1.2.1-seccomp-rseq-glibc-2.35.patch
new file mode 100644
index 000000000000..155304148b1f
--- /dev/null
+++ b/net-misc/ntpsec/files/ntpsec-1.2.1-seccomp-rseq-glibc-2.35.patch
@@ -0,0 +1,25 @@
+https://gitlab.com/NTPsec/ntpsec/-/merge_requests/1262
+https://bugs.gentoo.org/833274
+
+From 75970342391b0b1fad422e6ca3dc89dd76dcf607 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Thu, 7 Apr 2022 03:02:22 +0100
+Subject: [PATCH] ntpd/ntp_sandbox.c: allow rseq for glibc-2.35 in seccomp
+ filter
+
+Fixes: https://gitlab.com/NTPsec/ntpsec/-/issues/728
+Bug: https://bugs.gentoo.org/833274
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/ntpd/ntp_sandbox.c
++++ b/ntpd/ntp_sandbox.c
+@@ -366,6 +366,9 @@ int scmp_sc[] = {
+ SCMP_SYS(rt_sigaction),
+ SCMP_SYS(rt_sigprocmask),
+ SCMP_SYS(rt_sigreturn),
++#ifdef __NR_rseq
++ SCMP_SYS(rseq), /* needed by glibc-2.35+ for resumable sequences */
++#endif
+ SCMP_SYS(sigaction),
+ SCMP_SYS(sigprocmask),
+ SCMP_SYS(sigreturn),
+GitLab
diff --git a/net-misc/ntpsec/ntpsec-1.2.1-r1.ebuild b/net-misc/ntpsec/ntpsec-1.2.1-r2.ebuild
similarity index 97%
rename from net-misc/ntpsec/ntpsec-1.2.1-r1.ebuild
rename to net-misc/ntpsec/ntpsec-1.2.1-r2.ebuild
index 379a375aacd1..80e17ecb6cb5 100644
--- a/net-misc/ntpsec/ntpsec-1.2.1-r1.ebuild
+++ b/net-misc/ntpsec/ntpsec-1.2.1-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -60,6 +60,7 @@ DEPEND="${CDEPEND}
PATCHES=(
"${FILESDIR}/${PN}-1.1.9-remove-asciidoctor-from-config.patch"
"${FILESDIR}/${PN}-1.2.1-seccomp-rollup.patch"
+ "${FILESDIR}/${PN}-1.2.1-seccomp-rseq-glibc-2.35.patch"
)
WAF_BINARY="${S}/waf"
next reply other threads:[~2022-04-07 2:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-07 2:07 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-04-16 22:39 [gentoo-commits] repo/gentoo:master commit in: net-misc/ntpsec/, net-misc/ntpsec/files/ Sebastian Pipping
2022-04-20 1:03 Sam James
2021-12-03 19:28 Steve Arnold
2021-06-11 6:39 Sam James
2021-06-10 21:09 Sam James
2021-01-01 1:34 Michał Górny
2020-10-07 22:49 Steve Arnold
2020-03-13 2:49 Steve Arnold
2020-03-10 0:02 Steve Arnold
2019-10-26 17:51 Thomas Deutschmann
2018-02-28 13:23 Anthony G. Basile
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1649297229.41a34181245776801261388750b72b3418518fd0.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox