1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-33393 audit plugin do not report user did the action..

The '<replication_slave>' user is assigned to the slave replication
thread so this name appears in the auditing logs.
This commit is contained in:
Alexey Botchkov
2024-02-11 00:05:24 +04:00
parent b770633e07
commit 85517f609a
9 changed files with 154 additions and 8 deletions

View File

@ -7532,7 +7532,7 @@ static bool can_grant_role(THD *thd, ACL_ROLE *role)
{
Security_context *sctx= thd->security_ctx;
if (!sctx->user) // replication
if (!sctx->is_user_defined()) // galera
return true;
ACL_USER *grantee= find_user_exact(sctx->priv_host, sctx->priv_user);