Lines 73-79
Link Here
|
73 |
INCREMENTALS, EAPI, MISC_SH_BINARY |
73 |
INCREMENTALS, EAPI, MISC_SH_BINARY |
74 |
|
74 |
|
75 |
from portage_data import ostype, lchown, userland, secpass, uid, wheelgid, \ |
75 |
from portage_data import ostype, lchown, userland, secpass, uid, wheelgid, \ |
76 |
portage_uid, portage_gid |
76 |
portage_uid, portage_gid, userpriv_groups |
77 |
from portage_manifest import Manifest |
77 |
from portage_manifest import Manifest |
78 |
|
78 |
|
79 |
import portage_util |
79 |
import portage_util |
Lines 1926-1932
Link Here
|
1926 |
("userpriv" in string.split(mysettings["RESTRICT"])))) |
1926 |
("userpriv" in string.split(mysettings["RESTRICT"])))) |
1927 |
|
1927 |
|
1928 |
if droppriv and not uid and portage_gid and portage_uid: |
1928 |
if droppriv and not uid and portage_gid and portage_uid: |
1929 |
keywords.update({"uid":portage_uid,"gid":portage_gid,"groups":[portage_gid],"umask":002}) |
1929 |
keywords.update({"uid":portage_uid,"gid":portage_gid,"groups":userpriv_groups,"umask":002}) |
1930 |
|
1930 |
|
1931 |
if not free: |
1931 |
if not free: |
1932 |
free=((droppriv and "usersandbox" not in features) or \ |
1932 |
free=((droppriv and "usersandbox" not in features) or \ |
Lines 2257-2263
Link Here
|
2257 |
spawn_keywords.update({ |
2257 |
spawn_keywords.update({ |
2258 |
"uid" : portage_uid, |
2258 |
"uid" : portage_uid, |
2259 |
"gid" : portage_gid, |
2259 |
"gid" : portage_gid, |
2260 |
"groups" : [portage_gid], |
2260 |
"groups" : userpriv_groups, |
2261 |
"umask" : 002}) |
2261 |
"umask" : 002}) |
2262 |
|
2262 |
|
2263 |
try: |
2263 |
try: |