Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 127121 Details for
Bug 187953
portage-2.1.3.3 ebuild Permission Denied errors
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
only drop privileges when FEATURES=userpriv is enabled
userpriv.patch (text/plain), 1.15 KB, created by
Zac Medico
on 2007-08-06 21:51:04 UTC
(
hide
)
Description:
only drop privileges when FEATURES=userpriv is enabled
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-08-06 21:51:04 UTC
Size:
1.15 KB
patch
obsolete
>Index: pym/portage.py >=================================================================== >--- pym/portage.py (revision 7553) >+++ pym/portage.py (revision 7554) >@@ -3700,12 +3700,13 @@ > # get possible slot information from the deps file > if mydo == "depend": > writemsg("!!! DEBUG: dbkey: %s\n" % str(dbkey), 2) >+ droppriv = "userpriv" in mysettings.features > if isinstance(dbkey, dict): > mysettings["dbkey"] = "" > pr, pw = os.pipe() > fd_pipes = {0:0, 1:1, 2:2, 9:pw} > mypids = spawn(EBUILD_SH_BINARY + " depend", mysettings, >- fd_pipes=fd_pipes, returnpid=True, droppriv=1) >+ fd_pipes=fd_pipes, returnpid=True, droppriv=droppriv) > os.close(pw) # belongs exclusively to the child process now > maxbytes = 1024 > mybytes = [] >@@ -3733,7 +3734,8 @@ > mysettings["dbkey"] = \ > os.path.join(mysettings.depcachedir, "aux_db_key_temp") > >- return spawn(EBUILD_SH_BINARY + " depend", mysettings, droppriv=1) >+ return spawn(EBUILD_SH_BINARY + " depend", mysettings, >+ droppriv=droppriv) > > # Validate dependency metadata here to ensure that ebuilds with invalid > # data are never installed (even via the ebuild command).
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 187953
: 127121