Strip out 'permissions: ignore'

This commit is contained in:
zvecr
2022-07-13 23:49:55 +01:00
parent 98fd483611
commit f4e5901726
7 changed files with 6 additions and 38 deletions
+1 -3
View File
@@ -42,8 +42,6 @@ class XAPFlags(IntFlag):
FAILURE = 0
SUCCESS = 1 << 0
SECURE_FAILURE = 1 << 1
UNLOCK_IN_PROGRESS = 1 << 6
UNLOCKED = 1 << 7
class XAPEventType(IntEnum):
@@ -136,7 +134,7 @@ class XAPDevice:
return None
r = ResponsePacket._make(ResponseStruct.unpack(event._ret))
if r.flags != XAPFlags.SUCCESS:
if r.flags & XAPFlags.SUCCESS == 0:
return None
return r.data[:r.length]
@@ -128,7 +128,6 @@ def _append_routing_table_entry_flags(lines, container, container_id, route_stac
pem_map = {
None: 'ROUTE_PERMISSIONS_INSECURE',
'secure': 'ROUTE_PERMISSIONS_SECURE',
'ignore': 'ROUTE_PERMISSIONS_IGNORE',
}
is_secure = pem_map[container.get('permissions', None)]