Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45187 - Portage should not change file permissions
Summary: Portage should not change file permissions
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-19 20:17 UTC by Greg Symons
Modified: 2006-02-05 04:47 UTC (History)
0 users

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 Greg Symons 2004-03-19 20:17:33 UTC
This is similar to bug 22125 (http://bugs.gentoo.org/show_bug.cgi?id=22125), though not exactly the same.

Basically, I have created a global ccache directory, that I want _all_ users to use (including portage), so that I don't have tons of nearly identical cached object files lying around (there aren't many users, and they generally are compiling the same projects). However, whenever, I emerge an update, emerge changes the ownership of the directory to portage:portage. 

I believe this can probably be worked around by setting userpriv in FEATURES, though I haven't tried it yet (just discovered that flag recently, and still don't quite understand all of the impact adding it will have yet:). However, regardless of whether or not userpriv is set, portage shouldn't change the ownership of the ccache directory unless it is being created for the first time.

Reproducible: Always
Steps to Reproduce:
1.Specify a ccache directory in the global profile (in my case, /var/cache/ccache) and set its ownership and permissions appropriately (again, in my case, root.users 2775)
2.emerge anything
3.

Actual Results:  
ownership of the ccache directory is changed to portage.portage

Expected Results:  
The ownership of the ccache directory should have remained unchanged
Comment 1 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-09 17:55:59 UTC
Can't you add a user who uses ccache to portage group?
Comment 2 Brian Harring (RETIRED) gentoo-dev 2006-02-05 04:47:02 UTC
Files portage has to use for building (especially if told to do so by user configuration) are fair game for modification, both perms and ownership...