MySQL  8.0.20
Source Code Documentation
ACL_internal_table_access Class Referenceabstract

Per internal table ACL access rules. More...

#include <auth_common.h>

Inheritance diagram for ACL_internal_table_access:
PFS_editable_acl PFS_readonly_acl PFS_truncatable_acl PFS_unknown_acl PFS_updatable_acl PFS_readonly_world_acl PFS_truncatable_world_acl

Public Member Functions

 ACL_internal_table_access ()
 
virtual ~ACL_internal_table_access ()
 
virtual ACL_internal_access_result check (ulong want_access, ulong *save_priv) const =0
 Check access to an internal table. More...
 

Detailed Description

Per internal table ACL access rules.

This class is an interface. Per table(s) specific access rule should be implemented in a subclass.

See also
ACL_internal_schema_access

Constructor & Destructor Documentation

◆ ACL_internal_table_access()

ACL_internal_table_access::ACL_internal_table_access ( )
inline

◆ ~ACL_internal_table_access()

virtual ACL_internal_table_access::~ACL_internal_table_access ( )
inlinevirtual

Member Function Documentation

◆ check()

virtual ACL_internal_access_result ACL_internal_table_access::check ( ulong  want_access,
ulong *  save_priv 
) const
pure virtual

Check access to an internal table.

When a privilege is granted, this method add the requested privilege to save_priv.

Parameters
want_accessthe privileges requested
[in,out]save_privthe privileges granted
Return values
ACL_INTERNAL_ACCESS_GRANTEDAll the requested privileges are granted, and saved in save_priv.
ACL_INTERNAL_ACCESS_DENIEDAt least one of the requested privileges was denied.
ACL_INTERNAL_ACCESS_CHECK_GRANTNo 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 PFS_truncatable_world_acl, PFS_readonly_world_acl, PFS_unknown_acl, PFS_editable_acl, PFS_updatable_acl, PFS_truncatable_acl, and PFS_readonly_acl.


The documentation for this class was generated from the following file: