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
f9c771b0
Commit
f9c771b0
authored
Nov 10, 2007
by
mattiasj@mattiasj-laptop.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#32091: Security breach via directory changes
Changed test case from GRANT to CREATE USER
parent
47a03ea3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
mysql-test/r/partition_mgm.result
mysql-test/r/partition_mgm.result
+3
-2
mysql-test/t/partition_mgm.test
mysql-test/t/partition_mgm.test
+3
-2
No files found.
mysql-test/r/partition_mgm.result
View file @
f9c771b0
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)
...
...
mysql-test/t/partition_mgm.test
View file @
f9c771b0
--
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
;
#
...
...
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