Commit a8868f6e authored by unknown's avatar unknown

additional test fix for Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY

parent d04c177b
...@@ -34,17 +34,13 @@ let $unique= ; ...@@ -34,17 +34,13 @@ let $unique= ;
# #
--disable_query_log --disable_query_log
# DATA DIRECTORY # DATA DIRECTORY
# Make directory for partition data
--exec mkdir $MYSQLTEST_VARDIR/master-data/test/data || true
eval SET @data_dir = 'DATA DIRECTORY = eval SET @data_dir = 'DATA DIRECTORY =
''''$MYSQLTEST_VARDIR/master-data/test/data'''''; ''''$MYSQLTEST_VARDIR/tmp''''';
let $data_directory = `select @data_dir`; let $data_directory = `select @data_dir`;
#INDEX DIRECTORY #INDEX DIRECTORY
# Make directory for partition index
--exec mkdir $MYSQLTEST_VARDIR/master-data/test/index || true
eval SET @indx_dir = 'INDEX DIRECTORY = eval SET @indx_dir = 'INDEX DIRECTORY =
''''$MYSQLTEST_VARDIR/master-data/test/index'''''; ''''$MYSQLTEST_VARDIR/tmp''''';
let $index_directory = `select @indx_dir`; let $index_directory = `select @indx_dir`;
let $with_directories= 1; let $with_directories= 1;
...@@ -77,17 +73,13 @@ if ($more_pk_ui_tests) ...@@ -77,17 +73,13 @@ if ($more_pk_ui_tests)
# #
--disable_query_log --disable_query_log
# DATA DIRECTORY # DATA DIRECTORY
# Make directory for partition data
--exec mkdir $MYSQLTEST_VARDIR/master-data/test/data || true
eval SET @data_dir = 'DATA DIRECTORY = eval SET @data_dir = 'DATA DIRECTORY =
''''$MYSQLTEST_VARDIR/master-data/test/data'''''; ''''$MYSQLTEST_VARDIR/tmp''''';
let $data_directory = `select @data_dir`; let $data_directory = `select @data_dir`;
#INDEX DIRECTORY #INDEX DIRECTORY
# Make directory for partition index
--exec mkdir $MYSQLTEST_VARDIR/master-data/test/index || true
eval SET @indx_dir = 'INDEX DIRECTORY = eval SET @indx_dir = 'INDEX DIRECTORY =
''''$MYSQLTEST_VARDIR/master-data/test/index'''''; ''''$MYSQLTEST_VARDIR/tmp''''';
let $index_directory = `select @indx_dir`; let $index_directory = `select @indx_dir`;
let $with_directories= TRUE; let $with_directories= TRUE;
......
...@@ -27,8 +27,7 @@ if ($do_file_tests) ...@@ -27,8 +27,7 @@ if ($do_file_tests)
--exec ls $MYSQLTEST_VARDIR/master-data/test/t1* > $MYSQLTEST_VARDIR/master-data/test/tmp2 || true --exec ls $MYSQLTEST_VARDIR/master-data/test/t1* > $MYSQLTEST_VARDIR/master-data/test/tmp2 || true
if ($with_directories) if ($with_directories)
{ {
--exec ls $MYSQLTEST_VARDIR/master-data/test/data/t1* >> $MYSQLTEST_VARDIR/master-data/test/tmp2 || true --exec ls $MYSQLTEST_VARDIR/tmp/t1* >> $MYSQLTEST_VARDIR/master-data/test/tmp2 || true
--exec ls $MYSQLTEST_VARDIR/master-data/test/index/t1* >> $MYSQLTEST_VARDIR/master-data/test/tmp2 || true
} }
eval SET @aux = CONCAT('load_file(''$MYSQLTEST_VARDIR','/master-data/test/tmp2'')'); eval SET @aux = CONCAT('load_file(''$MYSQLTEST_VARDIR','/master-data/test/tmp2'')');
let $file_list= `SELECT @aux`; let $file_list= `SELECT @aux`;
...@@ -65,8 +64,7 @@ if ($found_garbage) ...@@ -65,8 +64,7 @@ if ($found_garbage)
--exec rm -f $MYSQLTEST_VARDIR/master-data/test/t1* || true --exec rm -f $MYSQLTEST_VARDIR/master-data/test/t1* || true
if ($with_directories) if ($with_directories)
{ {
--exec rm -f $MYSQLTEST_VARDIR/master-data/test/data/t1* || true --exec rm -f $MYSQLTEST_VARDIR/tmp/t1* || true
--exec rm -f $MYSQLTEST_VARDIR/master-data/test/index/t1* || true
} }
} }
--enable_query_log --enable_query_log
...@@ -38,8 +38,7 @@ if ($do_file_tests) ...@@ -38,8 +38,7 @@ if ($do_file_tests)
--exec ls $MYSQLTEST_VARDIR/master-data/test/t1* > $MYSQLTEST_VARDIR/master-data/test/tmp2 2>&1 || true --exec ls $MYSQLTEST_VARDIR/master-data/test/t1* > $MYSQLTEST_VARDIR/master-data/test/tmp2 2>&1 || true
if ($with_directories) if ($with_directories)
{ {
--exec ls $MYSQLTEST_VARDIR/master-data/test/data/t1* >> $MYSQLTEST_VARDIR/master-data/test/tmp2 2>&1 || true --exec ls $MYSQLTEST_VARDIR/tmp/t1* >> $MYSQLTEST_VARDIR/master-data/test/tmp2 2>&1 || true
--exec ls $MYSQLTEST_VARDIR/master-data/test/index/t1* >> $MYSQLTEST_VARDIR/master-data/test/tmp2 2>&1 || true
} }
eval SET @aux = CONCAT('load_file(''$MYSQLTEST_VARDIR','/master-data/test/tmp2'' eval SET @aux = CONCAT('load_file(''$MYSQLTEST_VARDIR','/master-data/test/tmp2''
)'); )');
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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