Relax permission check on OSX, it seem returning wrong info for setuid

pull/862/head
Julien Duponchelle 8 years ago
parent 8f6d25cc2b
commit f86358ad71
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -325,6 +325,10 @@ class BaseManager:
# do not check anything on Windows
return True
if sys.platform.startswith("darwin"):
if os.stat(executable).st_uid == 0:
return True
if os.geteuid() == 0:
# we are root, so we should have privileged access.
return True

Loading…
Cancel
Save