Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 106486 Details for
Bug 97477
Supplementary groups aren't set when changing to portage user
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to set supplementary groups
portage-exec-supp-groups.diff (text/plain), 459 bytes, created by
Marius Mauch (RETIRED)
on 2007-01-11 04:21:02 UTC
(
hide
)
Description:
Patch to set supplementary groups
Filename:
MIME Type:
Creator:
Marius Mauch (RETIRED)
Created:
2007-01-11 04:21:02 UTC
Size:
459 bytes
patch
obsolete
>Index: pym/portage_exec.py >=================================================================== >--- pym/portage_exec.py (revision 5536) >+++ pym/portage_exec.py (working copy) >@@ -311,6 +311,11 @@ > os.setgid(gid) > if groups: > os.setgroups(groups) >+ elif uid: >+ import grp, pwd >+ username = pwd.getpwuid(uid).pw_name >+ pgroups = [g.gr_name for g in grp.getgrall() if username in g.gr_mem] >+ os.setgroups(pgroups) > if uid: > os.setuid(uid) > if umask:
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 97477
: 106486