Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 159111

Summary: crossdev has problems when run with anal umasks
Product: Gentoo Linux Reporter: Michael Conrad <silverdirk-gbz>
Component: New packagesAssignee: SpanKY <vapier>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Conrad 2006-12-25 21:28:04 UTC
If one has a umask of 027, "crossdev -t avr" fails with permission errors.

The cause is that the scripts, somewhere, are creating directories as the user who ran emerge, and not changing their ownership to 'portage:portage' which then fails with permission errors when portage su's to the portage user.

Examples:
$ ls -l /var/portage/overlay/
     # among other hand-created ones
drwxr-x---  2 root root 144 Dec 25 23:17 cross-avr

     # and later
$ ls -l /var/tmp/
drwxr-xr-x  2 root       root      48 Dec 25 23:16 binpkgs
drwxrws---  2 portage    portage   48 Sep 27  2004 ccache
drwxr-x---  3 root       root      72 Dec 25 13:28 cross
drwxrws---  5 portage    portage 2000 Dec 25 23:46 portage
     # I would think cross should be same permissions as 'portage'
Comment 1 SpanKY gentoo-dev 2006-12-26 13:47:49 UTC
crossdev now resets umask to 0022