1 |
commit: 540ea2504d870d6ff28f61b3b399d178c7ae4df8 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 11 06:38:33 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 11 06:38:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=540ea250 |
7 |
|
8 |
net-misc/ntpsec: add additional pread64 syscall patch |
9 |
|
10 |
Closes: https://bugs.gentoo.org/786228 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch | 11 +++++++++++ |
14 |
.../ntpsec/{ntpsec-1.2.0-r2.ebuild => ntpsec-1.2.0-r3.ebuild} | 1 + |
15 |
2 files changed, 12 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch b/net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch |
18 |
index e4dc47f19cc..65c13189e9d 100644 |
19 |
--- a/net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch |
20 |
+++ b/net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch |
21 |
@@ -1,4 +1,5 @@ |
22 |
https://bugs.gentoo.org/705128 |
23 |
+https://bugs.gentoo.org/786228 |
24 |
--- a/ntpd/ntp_sandbox.c |
25 |
+++ b/ntpd/ntp_sandbox.c |
26 |
@@ -463,6 +463,15 @@ int scmp_sc[] = { |
27 |
@@ -17,3 +18,13 @@ https://bugs.gentoo.org/705128 |
28 |
}; |
29 |
{ |
30 |
for (unsigned int i = 0; i < COUNTOF(scmp_sc); i++) { |
31 |
+--- a/ntpd/ntp_sandbox.c |
32 |
++++ b/ntpd/ntp_sandbox.c |
33 |
+@@ -355,6 +355,7 @@ int scmp_sc[] = { |
34 |
+ SCMP_SYS(openat), /* SUSE */ |
35 |
+ #endif |
36 |
+ SCMP_SYS(poll), |
37 |
++ SCMP_SYS(pread64), |
38 |
+ SCMP_SYS(pselect6), |
39 |
+ SCMP_SYS(read), |
40 |
+ SCMP_SYS(recvfrom), /* Comment this out for testing. |
41 |
|
42 |
diff --git a/net-misc/ntpsec/ntpsec-1.2.0-r2.ebuild b/net-misc/ntpsec/ntpsec-1.2.0-r3.ebuild |
43 |
similarity index 99% |
44 |
rename from net-misc/ntpsec/ntpsec-1.2.0-r2.ebuild |
45 |
rename to net-misc/ntpsec/ntpsec-1.2.0-r3.ebuild |
46 |
index 4a5784ca79e..9d2d01df34e 100644 |
47 |
--- a/net-misc/ntpsec/ntpsec-1.2.0-r2.ebuild |
48 |
+++ b/net-misc/ntpsec/ntpsec-1.2.0-r3.ebuild |
49 |
@@ -68,6 +68,7 @@ WAF_BINARY="${S}/waf" |
50 |
|
51 |
src_prepare() { |
52 |
default |
53 |
+ |
54 |
# Remove autostripping of binaries |
55 |
sed -i -e '/Strip binaries/d' wscript || die |
56 |
if ! use libbsd ; then |