Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1482a2d2
Commit
1482a2d2
authored
Nov 05, 2007
by
vasil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip:
Deny access to TRX INFORMATION_SCHEMA tables to non-superusers. Approved by: Marko
parent
68058646
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
handler/i_s.cc
handler/i_s.cc
+7
-0
No files found.
handler/i_s.cc
View file @
1482a2d2
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment