Merge ~azzar1/ubiquity:fix_regain_privileges_save into ubiquity:master
| Status: | Merged |
|---|---|
| Approved by: | Iain Lane |
| Approved revision: | 92eccf445c54d05dbfc781849fed2c344daf2159 |
| Merged at revision: | 87e14f5399dbc3616889cf0ea6b34563c3793068 |
| Proposed branch: | ~azzar1/ubiquity:fix_regain_privileges_save |
| Merge into: | ubiquity:master |
| Diff against target: |
20 lines (+6/-0) 1 file modified
ubiquity/misc.py (+6/-0) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Iain Lane | Approve | ||
| Daniel van Vugt (community) | Approve | ||
| Didier Roche-Tolomelli (community) | Approve | ||
|
Review via email:
|
|||
Commit message
misc.py: Restore the corrent euid in regain_
Calling regain_
before the call to drop_privileges
os.setresgid twice to avoid permission issues when calling os.setgroups.
Fixes LP: #1751252
Description of the change
drop_privileges
The intial situation is (ruid, euid, suid) = (0, 0, 0)
After drop_privileges we get (ruid, euid, suid) = (0, 999, 0)
After drop_privileges
Atm if we call regain_

Please add a mention of LP: #1751252 in the commit message.