MySQL 9.1.0
Source Code Documentation
|
Grant the privilege temporarily to the in-memory global privileges map. More...
#include <auth_common.h>
Public Member Functions | |
Grant_temporary_dynamic_privileges (const THD *thd, std::vector< std::string > privs) | |
bool | precheck (Security_context *sctx) |
bool | grant_privileges (Security_context *sctx) |
Grant dynamic privileges to an in-memory global authid. More... | |
Public Member Functions inherited from Grant_privileges< Grant_temporary_dynamic_privileges > | |
bool | operator() (Security_context *sctx, Operation op) override |
Public Member Functions inherited from Security_context_policy | |
Security_context_policy ()=default | |
virtual | ~Security_context_policy ()=default |
Security_context_policy (const Security_context_policy &)=default | |
Private Attributes | |
const THD * | m_thd |
const std::vector< std::string > | m_privs |
Additional Inherited Members | |
Public Types inherited from Security_context_policy | |
enum | Operation { Precheck , Execute } |
Grant the privilege temporarily to the in-memory global privileges map.
This class is not thread safe.
Grant_temporary_dynamic_privileges::Grant_temporary_dynamic_privileges | ( | const THD * | thd, |
std::vector< std::string > | privs | ||
) |
bool Grant_temporary_dynamic_privileges::grant_privileges | ( | Security_context * | sctx | ) |
Grant dynamic privileges to an in-memory global authid.
sctx | The authid to grant privileges to. |
true | an error occurred |
false | success |
bool Grant_temporary_dynamic_privileges::precheck | ( | Security_context * | sctx | ) |
|
private |
|
private |