MySQL 8.4.3
Source Code Documentation
|
Per internal schema ACL access rules. More...
#include <auth_common.h>
Public Member Functions | |
ACL_internal_schema_access ()=default | |
virtual | ~ACL_internal_schema_access ()=default |
virtual ACL_internal_access_result | check (Access_bitmask want_access, Access_bitmask *save_priv, bool any_combination_will_do) const =0 |
Check access to an internal schema. More... | |
virtual const ACL_internal_table_access * | lookup (const char *name) const =0 |
Search for per table ACL access rules by table name. More... | |
Per internal schema ACL access rules.
This class is an interface. Each per schema specific access rule should be implemented in a different subclass, and registered. Per schema access rules can control:
|
default |
|
virtualdefault |
|
pure virtual |
Check access to an internal schema.
want_access | the privileges requested | |
[in,out] | save_priv | the privileges granted |
any_combination_will_do | true if it's enough to have any privilege for any combination of the table columns. |
ACL_INTERNAL_ACCESS_GRANTED | All the requested privileges are granted, and saved in save_priv. |
ACL_INTERNAL_ACCESS_DENIED | At least one of the requested privileges was denied. |
ACL_INTERNAL_ACCESS_CHECK_GRANT | No requested privilege was denied, and grant should be checked for at least one privilege. Requested privileges that are granted, if any, are saved in save_priv. |
Implemented in IS_internal_schema_access, and PFS_internal_schema_access.
|
pure virtual |
Search for per table ACL access rules by table name.
name | the table name |
Implemented in IS_internal_schema_access, and PFS_internal_schema_access.