|SQLBOX_ROLE_HIER_ALLOC(3)||Library Functions Manual||SQLBOX_ROLE_HIER_ALLOC(3)|
struct sqlbox_role_hier *
In a hierchical role system, roles inherit the permissions of their ancestors. “Permissions” includes SQL statements and database sources for opening/closing. Roles may transition into descendent roles, but not siblings or back to parents. Self-transition is a no-op. There are two special types of role: sinks and starts. Sinks may be transitioned into by all other roles, but not transitioned from. Starts transition to all other roles (except other starts), but may not be transitioned into.
By default, a role has no permissions and may not transition into any other role except itself.
NULLif memory allocation failed. On success, the pointer must be freed with sqlbox_role_hier_free(3).
|November 1, 2019||OpenBSD 6.5|