Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54929 - root access required when it's not really needed for emerge -f operations
Summary: root access required when it's not really needed for emerge -f operations
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-23 13:55 UTC by solar (RETIRED)
Modified: 2004-08-04 21:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description solar (RETIRED) gentoo-dev 2004-06-23 13:55:03 UTC
On my local box $DISTDIR is owned by my USER:GROUP 
As a normal user I wish to be able to fetch files, (not install them) but portage still demands me to be root to download (ie "emerge -f pkgs")

I view this as a security risk as fetching files as a root is going to open a root owned socket and who knows when wget or other will become exploitable again.

It's my belief that portage only needs to check for +w under the current context to be able to fetch files to the $DISTDIR.

# this works as a narmal user but is undesirable.
fakeroot emerge -f pkgs

I would provide a patch for this but coding in python is not really one of my stronger points.
Comment 1 C. Daelhousen (sapphirecat) 2004-07-29 13:06:41 UTC
At the very least, can userpriv always download as portage? AFAICT, all that would need done besides changing users to run wget is checking and fixing the $DISTDIR permissions like ${DISTDIR}/cvs-src already does.

(I'm thinking it might be a nice roadblock for script kiddies to prevent root from accessing the Internet at all. Even if I can't block rsync, I need to kill {HT,F}TP.)
Comment 2 Brian Harring (RETIRED) gentoo-dev 2004-08-04 21:02:06 UTC
Err, this is a dupe, but meanwhile emerge -f no longer requires root privs as of pre15.