mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
branches/zip: Deny non-superuser access to the INFORMATION_SCHEMA
tables INNODB_ZIP and INNODB_ZIP_RESET.
This commit is contained in:
parent
f0e3f1f3fe
commit
2a106e0f3a
1 changed files with 6 additions and 0 deletions
|
@ -957,6 +957,12 @@ i_s_zip_fill_low(
|
|||
|
||||
DBUG_ENTER("i_s_zip_fill_low");
|
||||
|
||||
/* deny access to non-superusers */
|
||||
if (check_global_access(thd, SUPER_ACL)) {
|
||||
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
||||
/* Determine log2(PAGE_ZIP_MIN_SIZE / 2 / BUF_BUDDY_LOW). */
|
||||
for (uint r = PAGE_ZIP_MIN_SIZE / 2 / BUF_BUDDY_LOW; r >>= 1; y++);
|
||||
|
||||
|
|
Loading…
Reference in a new issue