summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPPed72 <paolo.pedroni@iol.it>2016-12-23 14:09:45 +0100
committerMichael Orlitzky <mjo@gentoo.org>2016-12-23 10:56:21 -0500
commit5676e8711c2164af9ed300213e3acbabeb8d3700 (patch)
tree834945c07784fcb3266e391a4c218e76a7a09ad5 /sci-mathematics/gimps
parentdev-libs/gmime: arm stable, bug #594356 (diff)
downloadgentoo-5676e8711c2164af9ed300213e3acbabeb8d3700.tar.gz
gentoo-5676e8711c2164af9ed300213e3acbabeb8d3700.tar.bz2
gentoo-5676e8711c2164af9ed300213e3acbabeb8d3700.zip
sci-mathematics/gimps: Fix potential privilege escalation through hardlinks in configuration directory. Gentoo-bug: https://bugs.gentoo.org/show_bug.cgi?id=603408
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-mathematics/gimps')
-rw-r--r--sci-mathematics/gimps/files/gimps-28.9-init.d (renamed from sci-mathematics/gimps/files/gimps-26.6-r1-init.d)7
-rw-r--r--sci-mathematics/gimps/gimps-28.10.ebuild2
-rw-r--r--sci-mathematics/gimps/gimps-28.9.ebuild2
3 files changed, 3 insertions, 8 deletions
diff --git a/sci-mathematics/gimps/files/gimps-26.6-r1-init.d b/sci-mathematics/gimps/files/gimps-28.9-init.d
index 73ef6a962ed..00eca826805 100644
--- a/sci-mathematics/gimps/files/gimps-26.6-r1-init.d
+++ b/sci-mathematics/gimps/files/gimps-28.9-init.d
@@ -7,12 +7,7 @@ depend() {
}
checkconfig() {
- if [ ! -e "${GIMPS_DIR}" ]; then
- einfo "Creating ${GIMPS_DIR}"
- /bin/mkdir "${GIMPS_DIR}"
- fi
-
- /bin/chown -R ${USER}:${GROUP} ${GIMPS_DIR}
+ checkpath -d -o ${USER}:${GROUP} ${GIMPS_DIR}
if [ ! -e "${GIMPS_DIR}/local.txt" ]; then
eerror "GIMPS has not been configured. Please configure it manually before"
diff --git a/sci-mathematics/gimps/gimps-28.10.ebuild b/sci-mathematics/gimps/gimps-28.10.ebuild
index d92f5fbab03..34a48f2091c 100644
--- a/sci-mathematics/gimps/gimps-28.10.ebuild
+++ b/sci-mathematics/gimps/gimps-28.10.ebuild
@@ -40,7 +40,7 @@ src_install() {
einstalldocs
- newinitd "${FILESDIR}/${PN}-26.6-r1-init.d" gimps
+ newinitd "${FILESDIR}/${PN}-28.9-init.d" gimps
newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
systemd_dounit "${FILESDIR}/${PN}.service"
diff --git a/sci-mathematics/gimps/gimps-28.9.ebuild b/sci-mathematics/gimps/gimps-28.9.ebuild
index 6e0d02e2586..d4773204c25 100644
--- a/sci-mathematics/gimps/gimps-28.9.ebuild
+++ b/sci-mathematics/gimps/gimps-28.9.ebuild
@@ -40,7 +40,7 @@ src_install() {
einstalldocs
- newinitd "${FILESDIR}/${PN}-26.6-r1-init.d" gimps
+ newinitd "${FILESDIR}/${PN}-28.9-init.d" gimps
newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
systemd_dounit "${FILESDIR}/${PN}.service"