Get Windows interface list from the registry if the COM service fails.

This commit is contained in:
Jeremy committed 2014-12-09 19:17:25 -07:00
1 parent 20592f72c0
commit 823344bf44
2 files changed
+39 -7

No files matched your search

+1 -1
View File
@@ -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