Interface implementation for registering and checking global dynamic privileges.
More...
#include <dynamic_privileges_impl.h>
Interface implementation for registering and checking global dynamic privileges.
◆ add_deprecated()
mysql_service_status_t dynamic_privilege_services_impl::add_deprecated |
( |
const char * |
priv_name, |
|
|
size_t |
priv_name_len |
|
) |
| |
|
staticnoexcept |
◆ has_global_grant()
Check if the supplied security context has the specified privilege identifier granted to it.
Checks if a user has a specified privilege ID granted to it.
- Returns
- Return values
-
true | The privilege was granted. |
false | Access is defined - no such privilege. |
- Parameters
-
handle | The active security context of the user to be checked. |
privilege_str | The privilege identifier string |
privilege_str_len | The length of the identifier string |
- Returns
- Success state
-
true The user has the grant
-
false The user hasn't the grant
◆ register_privilege()
mysql_service_status_t dynamic_privilege_services_impl::register_privilege |
( |
const char * |
privilege_str, |
|
|
size_t |
privilege_str_len |
|
) |
| |
|
staticnoexcept |
Register a privilege identifiers in the list of known identifiers.
This enable the SQL syntax to recognize the identifier as a valid token.
- Parameters
-
privilege_str | The privilege identifier string |
privilege_str_len | The length of the identifier string |
- Note
- This function acquires the THD from the current_thd
- Returns
- Error flag
-
true The privilege ID couldn't be inserted.
-
false The privilege ID was successfully registered.
◆ remove_deprecated()
mysql_service_status_t dynamic_privilege_services_impl::remove_deprecated |
( |
const char * |
priv_name, |
|
|
size_t |
priv_name_len |
|
) |
| |
|
staticnoexcept |
◆ unregister_privilege()
mysql_service_status_t dynamic_privilege_services_impl::unregister_privilege |
( |
const char * |
privilege_str, |
|
|
size_t |
privilege_str_len |
|
) |
| |
|
staticnoexcept |
Unregister a privilege identifiers in the list of known identifiers.
This disables the SQL syntax from recognizing the identifier as a valid token.
- Parameters
-
privilege_str | The privilege identifier string |
privilege_str_len | The length of the identifier string |
- Note
- This function acquires the THD from the current_thd
- Returns
- Error flag
-
true The privilege ID wasn't in the list or remove failed.
-
false The privilege ID was successfully unregistered.
The documentation for this class was generated from the following files: