mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-23 14:42:28 +00:00
Catch missing function listxattr on some Linux host.
This commit is contained in:
parent
bfee08459d
commit
48dae085aa
@ -344,7 +344,7 @@ class BaseManager:
|
|||||||
# test the 2nd byte and check if the 13th bit (CAP_NET_RAW) is set
|
# test the 2nd byte and check if the 13th bit (CAP_NET_RAW) is set
|
||||||
if struct.unpack("<IIIII", caps)[1] & 1 << 13:
|
if struct.unpack("<IIIII", caps)[1] & 1 << 13:
|
||||||
return True
|
return True
|
||||||
except OSError as e:
|
except (AttributeError, OSError) as e:
|
||||||
log.error("could not determine if CAP_NET_RAW capability is set for {}: {}".format(executable, e))
|
log.error("could not determine if CAP_NET_RAW capability is set for {}: {}".format(executable, e))
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user