It makes no sense that the foldingathome client is run as root. Patch attached. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: foldingathome runs as root Expected Results: foldingathome should not run as root --- folding-init.d.old 2004-01-05 21:32:36.000000000 +0100 +++ folding-init.d 2004-01-05 21:34:32.000000000 +0100 @@ -7,7 +7,7 @@ ebegin "Starting Folding@home" cd /opt/foldingathome - nice -n 19 ./foldingathome >&/dev/null& + nice -n 19 sudo -u foldingathome ./foldingathome >&/dev/null& eend $? } --- foldingathome-3.24.ebuild.old 2004-01-05 21:31:22.000000000 +0100 +++ foldingathome-3.24.ebuild 2004-01-05 21:32:23.000000000 +0100 @@ -30,6 +30,8 @@ src_install() { exeinto ${I} ; doexe foldingathome exeinto /etc/init.d ; newexe ${FILESDIR}/folding-init.d foldingathome + adduser foldingathome + chown -R foldingathome:nobody /opt/foldingathome } pkg_postinst() {
Created attachment 23487 [details, diff] patch for foldingathome 3.24
please see the attached patch
excellent patch. Perhaps the process should also be chrooted? It would also be nice to automatically set up the client.cfg file to have the Gentoo group as default.
Is really no one of the gentoo people interested in this patch? If you think it's wise to have a software automatically download code from the net and execute it as root, go ahaed - I think it isn't, especially if there is absolutely no need for it!
-r1 is in CVS now, a little different from yours (don't like the sudo dependency). There are also a few other changes, please test if it works for you. Andreas, if we thought this was no issue, we would have closed it as WONTFIX :-)