Commit 1482a2d2 authored by vasil's avatar vasil

branches/zip:

Deny access to TRX INFORMATION_SCHEMA tables to non-superusers.

Approved by:	Marko
parent 68058646
......@@ -78,6 +78,7 @@ time_t MYSQL_TYPE_DATETIME
/* XXX these are defined in mysql_priv.h inside #ifdef MYSQL_SERVER */
bool schema_table_store_record(THD *thd, TABLE *table);
void localtime_to_TIME(MYSQL_TIME *to, struct tm *from);
bool check_global_access(THD *thd, ulong want_access);
/***********************************************************************
Common function to fill any of the dynamic tables:
......@@ -809,6 +810,12 @@ trx_i_s_common_fill_table(
DBUG_ENTER("trx_i_s_common_fill_table");
/* deny access to non-superusers */
if (check_global_access(thd, SUPER_ACL)) {
DBUG_RETURN(0);
}
/* minimize the number of places where global variables are
referenced */
cache = trx_i_s_cache;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment