1 |
commit: 5676e8711c2164af9ed300213e3acbabeb8d3700 |
2 |
Author: PPed72 <paolo.pedroni <AT> iol <DOT> it> |
3 |
AuthorDate: Fri Dec 23 13:09:45 2016 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 23 15:56:21 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5676e871 |
7 |
|
8 |
sci-mathematics/gimps: Fix potential privilege escalation through hardlinks in configuration directory. Gentoo-bug: https://bugs.gentoo.org/show_bug.cgi?id=603408 |
9 |
|
10 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
11 |
|
12 |
.../gimps/files/{gimps-26.6-r1-init.d => gimps-28.9-init.d} | 7 +------ |
13 |
sci-mathematics/gimps/gimps-28.10.ebuild | 2 +- |
14 |
sci-mathematics/gimps/gimps-28.9.ebuild | 2 +- |
15 |
3 files changed, 3 insertions(+), 8 deletions(-) |
16 |
|
17 |
diff --git a/sci-mathematics/gimps/files/gimps-26.6-r1-init.d b/sci-mathematics/gimps/files/gimps-28.9-init.d |
18 |
similarity index 82% |
19 |
rename from sci-mathematics/gimps/files/gimps-26.6-r1-init.d |
20 |
rename to sci-mathematics/gimps/files/gimps-28.9-init.d |
21 |
index 73ef6a9..00eca82 100644 |
22 |
--- a/sci-mathematics/gimps/files/gimps-26.6-r1-init.d |
23 |
+++ b/sci-mathematics/gimps/files/gimps-28.9-init.d |
24 |
@@ -7,12 +7,7 @@ depend() { |
25 |
} |
26 |
|
27 |
checkconfig() { |
28 |
- if [ ! -e "${GIMPS_DIR}" ]; then |
29 |
- einfo "Creating ${GIMPS_DIR}" |
30 |
- /bin/mkdir "${GIMPS_DIR}" |
31 |
- fi |
32 |
- |
33 |
- /bin/chown -R ${USER}:${GROUP} ${GIMPS_DIR} |
34 |
+ checkpath -d -o ${USER}:${GROUP} ${GIMPS_DIR} |
35 |
|
36 |
if [ ! -e "${GIMPS_DIR}/local.txt" ]; then |
37 |
eerror "GIMPS has not been configured. Please configure it manually before" |
38 |
|
39 |
diff --git a/sci-mathematics/gimps/gimps-28.10.ebuild b/sci-mathematics/gimps/gimps-28.10.ebuild |
40 |
index d92f5fb..34a48f2 100644 |
41 |
--- a/sci-mathematics/gimps/gimps-28.10.ebuild |
42 |
+++ b/sci-mathematics/gimps/gimps-28.10.ebuild |
43 |
@@ -40,7 +40,7 @@ src_install() { |
44 |
|
45 |
einstalldocs |
46 |
|
47 |
- newinitd "${FILESDIR}/${PN}-26.6-r1-init.d" gimps |
48 |
+ newinitd "${FILESDIR}/${PN}-28.9-init.d" gimps |
49 |
newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps |
50 |
|
51 |
systemd_dounit "${FILESDIR}/${PN}.service" |
52 |
|
53 |
diff --git a/sci-mathematics/gimps/gimps-28.9.ebuild b/sci-mathematics/gimps/gimps-28.9.ebuild |
54 |
index 6e0d02e..d477320 100644 |
55 |
--- a/sci-mathematics/gimps/gimps-28.9.ebuild |
56 |
+++ b/sci-mathematics/gimps/gimps-28.9.ebuild |
57 |
@@ -40,7 +40,7 @@ src_install() { |
58 |
|
59 |
einstalldocs |
60 |
|
61 |
- newinitd "${FILESDIR}/${PN}-26.6-r1-init.d" gimps |
62 |
+ newinitd "${FILESDIR}/${PN}-28.9-init.d" gimps |
63 |
newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps |
64 |
|
65 |
systemd_dounit "${FILESDIR}/${PN}.service" |