From f86358ad7128ed8d8fcdfa23c628bc9888ea9741 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 19 Dec 2016 09:28:27 +0100 Subject: [PATCH] Relax permission check on OSX, it seem returning wrong info for setuid --- gns3server/compute/base_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gns3server/compute/base_manager.py b/gns3server/compute/base_manager.py index 0ede64d9..84451138 100644 --- a/gns3server/compute/base_manager.py +++ b/gns3server/compute/base_manager.py @@ -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