Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159111 - crossdev has problems when run with anal umasks
Summary: crossdev has problems when run with anal umasks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-25 21:28 UTC by Michael Conrad
Modified: 2006-12-26 13: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 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