mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-13 20:08:55 +00:00
Relax permission check on OSX, it seem returning wrong info for setuid
This commit is contained in:
parent
8f6d25cc2b
commit
f86358ad71
@ -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…
Reference in New Issue
Block a user