commit:     540ea2504d870d6ff28f61b3b399d178c7ae4df8
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 11 06:38:33 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 11 06:38:33 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=540ea250

net-misc/ntpsec: add additional pread64 syscall patch

Closes: https://bugs.gentoo.org/786228
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch              | 11 +++++++++++
 .../ntpsec/{ntpsec-1.2.0-r2.ebuild => ntpsec-1.2.0-r3.ebuild} |  1 +
 2 files changed, 12 insertions(+)

diff --git a/net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch 
b/net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch
index e4dc47f19cc..65c13189e9d 100644
--- a/net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch
+++ b/net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch
@@ -1,4 +1,5 @@
 https://bugs.gentoo.org/705128
+https://bugs.gentoo.org/786228
 --- a/ntpd/ntp_sandbox.c
 +++ b/ntpd/ntp_sandbox.c
 @@ -463,6 +463,15 @@ int scmp_sc[] = {
@@ -17,3 +18,13 @@ https://bugs.gentoo.org/705128
  };
         {
                 for (unsigned int i = 0; i < COUNTOF(scmp_sc); i++) {
+--- a/ntpd/ntp_sandbox.c
++++ b/ntpd/ntp_sandbox.c
+@@ -355,6 +355,7 @@ int scmp_sc[] = {
+       SCMP_SYS(openat),       /* SUSE */
+ #endif
+       SCMP_SYS(poll),
++      SCMP_SYS(pread64),
+       SCMP_SYS(pselect6),
+       SCMP_SYS(read),
+       SCMP_SYS(recvfrom),    /* Comment this out for testing.

diff --git a/net-misc/ntpsec/ntpsec-1.2.0-r2.ebuild 
b/net-misc/ntpsec/ntpsec-1.2.0-r3.ebuild
similarity index 99%
rename from net-misc/ntpsec/ntpsec-1.2.0-r2.ebuild
rename to net-misc/ntpsec/ntpsec-1.2.0-r3.ebuild
index 4a5784ca79e..9d2d01df34e 100644
--- a/net-misc/ntpsec/ntpsec-1.2.0-r2.ebuild
+++ b/net-misc/ntpsec/ntpsec-1.2.0-r3.ebuild
@@ -68,6 +68,7 @@ WAF_BINARY="${S}/waf"
 
 src_prepare() {
        default
+
        # Remove autostripping of binaries
        sed -i -e '/Strip binaries/d' wscript || die
        if ! use libbsd ; then

Reply via email to