Bug#32091: Security breach via directory changes

Changed test case from GRANT to CREATE USER
parent 47a03ea3
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
DROP DATABASE IF EXISTS mysqltest2;
# Creating two non colliding tables mysqltest2.t1 and test.t1 # Creating two non colliding tables mysqltest2.t1 and test.t1
# test.t1 have partitions in mysqltest2-directory! # test.t1 have partitions in mysqltest2-directory!
# user root: # user root:
GRANT USAGE ON test.* TO mysqltest_1@localhost; CREATE USER mysqltest_1@localhost;
CREATE DATABASE mysqltest2; CREATE DATABASE mysqltest2;
USE mysqltest2; USE mysqltest2;
CREATE TABLE t1 (a INT); CREATE TABLE t1 (a INT);
...@@ -79,7 +80,7 @@ Got one of the listed errors ...@@ -79,7 +80,7 @@ Got one of the listed errors
# user root (cleanup): # user root (cleanup):
DROP DATABASE mysqltest2; DROP DATABASE mysqltest2;
USE test; USE test;
REVOKE USAGE ON *.* FROM mysqltest_1@localhost; DROP USER mysqltest_1@localhost;
create table t1 (a int) create table t1 (a int)
partition by range (a) partition by range (a)
subpartition by key (a) subpartition by key (a)
......
-- source include/have_partition.inc -- source include/have_partition.inc
-- disable_warnings -- disable_warnings
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
DROP DATABASE IF EXISTS mysqltest2;
-- enable_warnings -- enable_warnings
# #
...@@ -21,7 +22,7 @@ DROP TABLE IF EXISTS t1; ...@@ -21,7 +22,7 @@ DROP TABLE IF EXISTS t1;
-- echo # Creating two non colliding tables mysqltest2.t1 and test.t1 -- echo # Creating two non colliding tables mysqltest2.t1 and test.t1
-- echo # test.t1 have partitions in mysqltest2-directory! -- echo # test.t1 have partitions in mysqltest2-directory!
-- echo # user root: -- echo # user root:
GRANT USAGE ON test.* TO mysqltest_1@localhost; CREATE USER mysqltest_1@localhost;
CREATE DATABASE mysqltest2; CREATE DATABASE mysqltest2;
USE mysqltest2; USE mysqltest2;
CREATE TABLE t1 (a INT); CREATE TABLE t1 (a INT);
...@@ -109,7 +110,7 @@ connection default; ...@@ -109,7 +110,7 @@ connection default;
-- echo # user root (cleanup): -- echo # user root (cleanup):
DROP DATABASE mysqltest2; DROP DATABASE mysqltest2;
USE test; USE test;
REVOKE USAGE ON *.* FROM mysqltest_1@localhost; DROP USER mysqltest_1@localhost;
disconnect con1; disconnect con1;
# #
......
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