Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 140638 Details for
Bug 162542
portage doesn't fix CCACHE_DIR permissions w/ userpriv/usersandbox in FEATURES
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
detect userpriv permission problems and fix
droppriv.patch (text/plain), 1.17 KB, created by
Zac Medico
on 2008-01-10 23:09:34 UTC
(
hide
)
Description:
detect userpriv permission problems and fix
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2008-01-10 23:09:34 UTC
Size:
1.17 KB
patch
obsolete
>Index: pym/portage.py >=================================================================== >--- pym/portage.py (revision 9156) >+++ pym/portage.py (working copy) >@@ -4038,6 +4038,11 @@ > dirmode = 02070 > filemode = 060 > modemask = 02 >+ restrict = mysettings.get("PORTAGE_RESTRICT","").split() >+ from portage_data import secpass >+ droppriv = secpass >= 2 and \ >+ "userpriv" in mysettings.features and \ >+ "userpriv" not in restrict > for myfeature, kwargs in features_dirs.iteritems(): > if myfeature in mysettings.features: > basedir = mysettings[kwargs["basedir_var"]] >@@ -4054,7 +4059,13 @@ > # Generally, we only want to apply permissions for > # initial creation. Otherwise, we don't know exactly what > # permissions the user wants, so should leave them as-is. >- if modified or kwargs["always_recurse"]: >+ droppriv_fix = False >+ if droppriv: >+ st = os.stat(mydir) >+ if st.st_gid != portage_gid or \ >+ not stat.S_IMODE(st.st_mode) & dirmode: >+ droppriv_fix = True >+ if modified or kwargs["always_recurse"] or droppriv_fix: > if modified: > writemsg("Adjusting permissions recursively: '%s'\n" % mydir, > noiselevel=-1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 162542
:
140638
|
149140