Skip to content

Commit

Permalink
sci-mathematics/gimps: Fix potential privilege escalation through har…
Browse files Browse the repository at this point in the history
…dlinks in configuration directory. Gentoo-bug: https://bugs.gentoo.org/show_bug.cgi?id=603408

Signed-off-by: Michael Orlitzky <[email protected]>
  • Loading branch information
PPed72 authored and orlitzky committed Dec 23, 2016
1 parent fe924b2 commit 5676e87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sci-mathematics/gimps/gimps-28.10.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sci-mathematics/gimps/gimps-28.9.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5676e87

Please sign in to comment.