mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Get Windows interface list from the registry if the COM service fails.
This commit is contained in:
1 parent
20592f72c0
commit
823344bf44
2 files changed
+39
-7
No files matched your search
@@ -129,7 +129,7 @@ def has_privileged_access(executable):
|
||||
if os.geteuid() == 0:
|
||||
# we are root, so we should have privileged access.
|
||||
return True
|
||||
if os.stat(executable).st_mode & stat.S_ISUID:
|
||||
if os.stat(executable).st_mode & stat.S_ISUID or os.stat(executable).st_mode & stat.S_ISGID:
|
||||
# the executable has set UID bit.
|
||||
return True
|
||||
|
||||
|
||||
Reference in new issue
Block a user