Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.11 KB

rights.md

File metadata and controls

25 lines (20 loc) · 1.11 KB

Rights

Basics

Rights are associated with handles and convey privileges to perform actions on either the associated handle or the object associated with the handle.

The <zircon/rights.h> header defines default rights for each object type, which can be reduced via zx_handle_replace() or zx_handle_duplicate().

Right Conferred Privileges
ZX_RIGHT_DUPLICATE Allows handle duplication via zx_handle_duplicate
ZX_RIGHT_TRANSFER Allows handle transfer via zx_channel_write
ZX_RIGHT_READ Allows inspection of object state
Allows reading of data from containers (channels, sockets, VM objects, etc)
ZX_RIGHT_WRITE Allows modification of object state
Allows writing of data to containers (channels, sockets, VM objects, etc)
ZX_RIGHT_EXECUTE
ZX_RIGHT_DEBUG Placeholder for debugger use, pending audit of all rights usage

See also

Objects, Zircon Handles