Pyinstaller now seems to have a restriction that it cannot run under root."You are running PyInstaller as user root."
1. Can you elaborate what reason for this restriction is? And why this only done for "Unix" not for OSX or Windows?
2. This check is also triggered when running under fakeroot
e.g. from dpkg-buildpackage -r fakerootCan you add a flag to override this behavior or fix the detection for root under fakeroot?
Goebel Consult
http://www.goebel-consult.de
Monatliche Kolumne:
http://www.cissp-gefluester.de/2012-09-steht-ein-manta-fahrer-vor-der-uni
Blog:
http://www.goebel-consult.de/blog/20050620
Goebel Consult ist Mitglied bei http://www.7-it.de/
> No, this would contradict the security measure.
What security does this change provide?
Goebel Consult
http://www.goebel-consult.de
Monatliche Kolumne:
http://www.cissp-gefluester.de/2011-11-in-troja-nichts-neues
Blog:
http://www.goebel-consult.de/blog/20060920
> Why would one need to run PyInstaller as root?
Hartmut, I'm talking about fakeroot. Not running as root. The current check breaks running as fakeroot. Which runs under user context faking root context.
The current solution gives a false sense of added security.
Goebel Consult
http://www.goebel-consult.de
Monatliche Kolumne:
http://www.cissp-gefluester.de/2011-11-in-troja-nichts-neues
Blog:
http://www.goebel-consult.de/blog/20060920
> So: Why would one need to run PyInstaller as fakeroot?
Because it's a tool that offers functionality I would like to use.
Goebel Consult
http://www.goebel-consult.de
Monatliche Kolumne:
http://www.cissp-gefluester.de/2011-11-in-troja-nichts-neues
Blog:
http://www.goebel-consult.de/blog/20050620
usercustomize.py
which contains:import osos.setuid(1000)
[...]PYTHONPATH=. ./pyinstaller/pyinstaller.py
Now, what happened to the "security measure" ?
Goebel Consult
http://www.goebel-consult.de
Monatliche Kolumne:
http://www.cissp-gefluester.de/2011-11-in-troja-nichts-neues
Blog:
http://www.goebel-consult.de/blog/20050620
Apparently I need to spell it out.This was largely meant as an example that usercustomize.py can override most of the python interpreter.
Goebel Consult
http://www.goebel-consult.de
Monatliche Kolumne:
http://www.cissp-gefluester.de/2011-11-in-troja-nichts-neues
Blog:
http://www.goebel-consult.de/blog/20060920
because in some linux distros running as su or root is the ONLY OPTION
Goebel Consult, Landshut
http://www.goebel-consult.de
Blog:
http://www.goebel-consult.de/blog/funktioniert-sprachausgabe-inzwischen-brauchbar
Kolumne:
http://www.cissp-gefluester.de/2010-07-passwoerter-lieben-lernen
He this is the default behavior on Windows for years, and you don't have the same restriction there?What's up with that? Who's being "insecure"?
Goebel Consult, Landshut
http://www.goebel-consult.de