summaryrefslogtreecommitdiff
path: root/sql/sql_acl.h
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <cvicentiu@gmail.com>2013-10-17 20:39:23 -0700
committerSergei Golubchik <sergii@pisem.net>2013-10-17 20:39:23 -0700
commitdb25d8f97713e3a4ade8284c57f65c63605c5b25 (patch)
tree1520135c114dcd1c576384dd45d6e787de5e0e63 /sql/sql_acl.h
parent494f0117995bcd786e481960d2c4cdd5d13f0f61 (diff)
downloadmariadb-git-db25d8f97713e3a4ade8284c57f65c63605c5b25.tar.gz
Modified set_role_var to implement both a role check in the check() function,
as well as only set privileges in the update() function.
Diffstat (limited to 'sql/sql_acl.h')
-rw-r--r--sql/sql_acl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_acl.h b/sql/sql_acl.h
index abc5e8ac25c..0e04d8f86d6 100644
--- a/sql/sql_acl.h
+++ b/sql/sql_acl.h
@@ -382,5 +382,6 @@ get_cached_table_access(GRANT_INTERNAL_INFO *grant_internal_info,
bool acl_check_proxy_grant_access (THD *thd, const char *host, const char *user,
bool with_grant);
-bool acl_setrole(THD *thd, char *rolename);
+int acl_setrole(THD *thd, char *rolename, ulonglong access);
+int acl_check_setrole(THD *thd, char *rolename, ulonglong *access);
#endif /* SQL_ACL_INCLUDED */