summaryrefslogtreecommitdiff
path: root/sql/sql_acl.h
diff options
context:
space:
mode:
authorjani@a193-229-222-105.elisa-laajakaista.fi <>2005-03-18 13:32:28 +0200
committerjani@a193-229-222-105.elisa-laajakaista.fi <>2005-03-18 13:32:28 +0200
commit5537d21466978b641190f977065449536bab7a0d (patch)
tree5c0bffa6d1ac69b2b7cd0e0dbfa6f2bb92cff785 /sql/sql_acl.h
parentd53423383b11d0caf805204b01438fea681509c4 (diff)
downloadmariadb-git-5537d21466978b641190f977065449536bab7a0d.tar.gz
Added more tests to grant2. Fixed some previous tests.
Added new logic to ACL system: 1) If GRANT OPTION (not mysql db): Ok to update existing user, but not password. Not allowed to make a new user. 2) If UPDATE_ACL to mysql DB: Ok to update current user, but not make a new one. 3) If INSERT_ACL to mysql DB: Ok to add a new user, but not modify existing. 4) If GRANT OPTION to mysql DB: All modifications OK.
Diffstat (limited to 'sql/sql_acl.h')
-rw-r--r--sql/sql_acl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_acl.h b/sql/sql_acl.h
index 24916fd4385..e9e58e40e12 100644
--- a/sql/sql_acl.h
+++ b/sql/sql_acl.h
@@ -190,6 +190,8 @@ bool mysql_table_grant(THD *thd, TABLE_LIST *table, List <LEX_USER> &user_list,
bool mysql_procedure_grant(THD *thd, TABLE_LIST *table,
List <LEX_USER> &user_list, ulong rights,
bool revoke, bool no_error);
+ACL_USER *check_acl_user(LEX_USER *user_name,
+ uint *acl_acl_userdx);
my_bool grant_init(THD *thd);
void grant_free(void);
void grant_reload(THD *thd);