1 |
commit: a87107cfff01e74e3519624360dbd72a60a1fdd9 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 10 21:09:31 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 10 21:09:31 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a87107cf |
7 |
|
8 |
net-misc/ntpsec: add seccomp patch from upstream |
9 |
|
10 |
Closes: https://bugs.gentoo.org/786228 |
11 |
Closes: https://bugs.gentoo.org/705128 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch | 19 +++++++++++++++++++ |
15 |
...{ntpsec-1.2.0-r1.ebuild => ntpsec-1.2.0-r2.ebuild} | 5 +++-- |
16 |
2 files changed, 22 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch b/net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..e4dc47f19cc |
21 |
--- /dev/null |
22 |
+++ b/net-misc/ntpsec/files/ntpsec-1.2.0-seccomp.patch |
23 |
@@ -0,0 +1,19 @@ |
24 |
+https://bugs.gentoo.org/705128 |
25 |
+--- a/ntpd/ntp_sandbox.c |
26 |
++++ b/ntpd/ntp_sandbox.c |
27 |
+@@ -463,6 +463,15 @@ int scmp_sc[] = { |
28 |
+ SCMP_SYS(send), |
29 |
+ SCMP_SYS(stat64), |
30 |
+ #endif |
31 |
++#if defined(__arm__) |
32 |
++ SCMP_SYS(statx), |
33 |
++#endif |
34 |
++#if defined(__riscv32__) |
35 |
++ SCMP_SYS(faccessat), |
36 |
++#endif |
37 |
++#if defined(__aarch64__) |
38 |
++ SCMP_SYS(syscall); |
39 |
++#endif |
40 |
+ }; |
41 |
+ { |
42 |
+ for (unsigned int i = 0; i < COUNTOF(scmp_sc); i++) { |
43 |
|
44 |
diff --git a/net-misc/ntpsec/ntpsec-1.2.0-r1.ebuild b/net-misc/ntpsec/ntpsec-1.2.0-r2.ebuild |
45 |
similarity index 98% |
46 |
rename from net-misc/ntpsec/ntpsec-1.2.0-r1.ebuild |
47 |
rename to net-misc/ntpsec/ntpsec-1.2.0-r2.ebuild |
48 |
index b303b583ef9..4a5784ca79e 100644 |
49 |
--- a/net-misc/ntpsec/ntpsec-1.2.0-r1.ebuild |
50 |
+++ b/net-misc/ntpsec/ntpsec-1.2.0-r2.ebuild |
51 |
@@ -1,9 +1,9 @@ |
52 |
# Copyright 1999-2021 Gentoo Authors |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
|
55 |
-EAPI=6 |
56 |
+EAPI=7 |
57 |
|
58 |
-PYTHON_COMPAT=( python3_{6..9} ) |
59 |
+PYTHON_COMPAT=( python3_{7..9} ) |
60 |
PYTHON_REQ_USE='threads(+)' |
61 |
DISTUTILS_USE_SETUPTOOLS=no |
62 |
|
63 |
@@ -61,6 +61,7 @@ PATCHES=( |
64 |
"${FILESDIR}/${PN}-1.1.8-fix-missing-scmp_sys-on-aarch64.patch" |
65 |
"${FILESDIR}/${PN}-1.1.9-remove-asciidoctor-from-config.patch" |
66 |
"${FILESDIR}/${PN}-1.2.0-move-newfstatat.patch" |
67 |
+ "${FILESDIR}/${PN}-1.2.0-seccomp.patch" |
68 |
) |
69 |
|
70 |
WAF_BINARY="${S}/waf" |