Complete the sentence to define capability-based security.
In capability-based security, a [1] is a communicable, unforgeable token of authority.A capability is a token that grants access rights to an object or resource in capability-based security.
Complete the sentence to explain how capabilities are used.
A process must present a valid [1] to access a resource in capability-based security.
In capability-based security, a process uses a capability as proof of its right to access a resource.
Fix the error in the statement about capability-based security.
[1] are used to restrict access by identity rather than by possession of tokens.Access control lists (ACLs) restrict access by identity, while capability-based security restricts access by possession of capabilities (tokens).
Fill both blanks to complete the dictionary comprehension that filters capabilities with read access.
read_caps = {obj: cap for obj, cap in caps.items() if cap [1] 'read' and cap [2] 'write'}The code selects capabilities equal to 'read' and not equal to 'write'.
Fill all three blanks to create a dictionary of capabilities with 'execute' permission and object names in uppercase.
exec_caps = [1]: cap for obj, cap in caps.items() if cap [2] 'execute' and obj.[3]()
The dictionary uses the uppercase object name as key, checks if capability equals 'execute', and calls upper() method on the object name.