This might be sufficient, its a bit ugly right now, should become a context manager: with os.seteuid(trans.uid): ... But should fix the issue that install-file can be used as a information leak.
This might be sufficient, its a bit ugly right now, should become a context manager: trans.uid) :
with os.seteuid(
...
But should fix the issue that install-file can be used as a information leak.