1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Added acl_setrole function. The function enables/disables role privileges to

the current user via the current security_context
This commit is contained in:
Vicențiu Ciorbaru
2013-10-17 15:11:13 -07:00
committed by Sergei Golubchik
parent 6680bb14a4
commit 7ec24435b3
4 changed files with 65 additions and 1 deletions

View File

@@ -3647,7 +3647,7 @@ void Security_context::init()
{
host= user= ip= external_user= 0;
host_or_ip= "connecting host";
priv_user[0]= priv_host[0]= proxy_user[0]= '\0';
priv_user[0]= priv_host[0]= proxy_user[0]= priv_role[0]= '\0';
master_access= 0;
#ifndef NO_EMBEDDED_ACCESS_CHECKS
db_access= NO_ACCESS;