My Project
|
#include <sql_acl.h>
Public Member Functions | |
virtual ACL_internal_access_result | check (ulong want_access, ulong *save_priv) const =0 |
virtual const ACL_internal_table_access * | lookup (const char *name) const =0 |
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:
virtual ACL_internal_access_result ACL_internal_schema_access::check | ( | ulong | want_access, |
ulong * | save_priv | ||
) | const [pure virtual] |
Check access to an internal schema.
want_access | the privileges requested | |
[in,out] | save_priv | the privileges granted |
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.
virtual const ACL_internal_table_access* ACL_internal_schema_access::lookup | ( | const char * | name | ) | const [pure virtual] |
Search for per table ACL access rules by table name.
name | the table name |
Implemented in IS_internal_schema_access.