MCPcopy Create free account
hub / github.com/MariaDB/server / traverse_role_graph_down

Function traverse_role_graph_down

sql/sql_acl.cc:6722–6729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6720*/
6721
6722static int traverse_role_graph_down(ACL_USER_BASE *user, void *context,
6723 int (*on_node) (ACL_USER_BASE *role, void *context),
6724 int (*on_edge) (ACL_USER_BASE *current, ACL_ROLE *neighbour, void *context))
6725{
6726 return traverse_role_graph_impl(user, context,
6727 my_offsetof(ACL_USER_BASE, role_grants),
6728 on_node, on_edge);
6729}
6730
6731/*
6732 To find all db/table/routine privilege for a specific role

Callers 7

check_user_can_set_roleFunction · 0.85
can_grant_roleFunction · 0.85
mysql_grant_roleFunction · 0.85
mysql_show_grantsFunction · 0.85
check_role_is_grantedFunction · 0.85

Calls 1

traverse_role_graph_implFunction · 0.85

Tested by

no test coverage detected