mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
reverting a fix
sql/sql_acl.cc: I revert my last change, as this requires further elaboration. For the moment we should document it in the manual. If MySQL 4.0.2 or higher is used with pre-4.0.2 user privilege table, then user with no global privs at all will have privileges to: * LOCK TABLES * CREATE TEMPORARY TABLES * run commsnd SHOW DATABASES
This commit is contained in:
@ -297,8 +297,7 @@ int acl_init(bool dont_read_acl_tables)
|
|||||||
user.access|=REFERENCES_ACL | INDEX_ACL | ALTER_ACL;
|
user.access|=REFERENCES_ACL | INDEX_ACL | ALTER_ACL;
|
||||||
}
|
}
|
||||||
/* Convert old privileges */
|
/* Convert old privileges */
|
||||||
if (user.access)
|
user.access|= LOCK_TABLES_ACL | CREATE_TMP_ACL | SHOW_DB_ACL;
|
||||||
user.access|= LOCK_TABLES_ACL | CREATE_TMP_ACL | SHOW_DB_ACL;
|
|
||||||
if (user.access & FILE_ACL)
|
if (user.access & FILE_ACL)
|
||||||
user.access|= REPL_CLIENT_ACL | REPL_SLAVE_ACL;
|
user.access|= REPL_CLIENT_ACL | REPL_SLAVE_ACL;
|
||||||
if (user.access & PROCESS_ACL)
|
if (user.access & PROCESS_ACL)
|
||||||
|
Reference in New Issue
Block a user