Bug#32091: Security breach via directory changes

Changed test case from GRANT to CREATE USER
This commit is contained in:
mattiasj@mattiasj-laptop.(none) 2007-11-10 21:29:39 +01:00
parent 47a03ea321
commit f9c771b037
2 changed files with 6 additions and 4 deletions

View file

@ -1,8 +1,9 @@
DROP TABLE IF EXISTS t1;
DROP DATABASE IF EXISTS mysqltest2;
# Creating two non colliding tables mysqltest2.t1 and test.t1
# test.t1 have partitions in mysqltest2-directory!
# user root:
GRANT USAGE ON test.* TO mysqltest_1@localhost;
CREATE USER mysqltest_1@localhost;
CREATE DATABASE mysqltest2;
USE mysqltest2;
CREATE TABLE t1 (a INT);
@ -79,7 +80,7 @@ Got one of the listed errors
# user root (cleanup):
DROP DATABASE mysqltest2;
USE test;
REVOKE USAGE ON *.* FROM mysqltest_1@localhost;
DROP USER mysqltest_1@localhost;
create table t1 (a int)
partition by range (a)
subpartition by key (a)

View file

@ -1,6 +1,7 @@
-- source include/have_partition.inc
-- disable_warnings
DROP TABLE IF EXISTS t1;
DROP DATABASE IF EXISTS mysqltest2;
-- enable_warnings
#
@ -21,7 +22,7 @@ DROP TABLE IF EXISTS t1;
-- echo # Creating two non colliding tables mysqltest2.t1 and test.t1
-- echo # test.t1 have partitions in mysqltest2-directory!
-- echo # user root:
GRANT USAGE ON test.* TO mysqltest_1@localhost;
CREATE USER mysqltest_1@localhost;
CREATE DATABASE mysqltest2;
USE mysqltest2;
CREATE TABLE t1 (a INT);
@ -109,7 +110,7 @@ connection default;
-- echo # user root (cleanup):
DROP DATABASE mysqltest2;
USE test;
REVOKE USAGE ON *.* FROM mysqltest_1@localhost;
DROP USER mysqltest_1@localhost;
disconnect con1;
#