summaryrefslogtreecommitdiff
path: root/mysql-test/t/udf-master.opt
diff options
context:
space:
mode:
authorunknown <svoj@mysql.com/june.mysql.com>2007-05-18 16:23:46 +0500
committerunknown <svoj@mysql.com/june.mysql.com>2007-05-18 16:23:46 +0500
commit7839da601c2577d5f7c7844fa4230c043321a44a (patch)
treed313b7e649f394611b5da508133b316e05974670 /mysql-test/t/udf-master.opt
parent0ea67375efc66950d691ce7bdb5cab8eb0a158d5 (diff)
downloadmariadb-git-7839da601c2577d5f7c7844fa4230c043321a44a.tar.gz
BUG#28341 - Security issue still in library loading
UDF can be created from any library in any part of the server LD_LIBRARY_PATH. Allow to load udfs only from plugin_dir. On windows, refuse to open udf in case it's path contains a slash. No good test case for this bug because of imperfect error message that includes error code and error string when it fails to dlopen a library. mysql-test/mysql-test-run.pl: Since plugins are allowed to be open only from plugin_dir: - there is no sence to update LD_LIBRARY_PATH - there is no sence to add plugin_dir arg by default - set UDF_EXAMPLE_LIB_OPT and EXAMPLE_PLUGIN_OPT to be used by udf and plugin tests accordingly. mysql-test/r/plugin.result: Updated test result (we report addition warning). sql/sql_udf.cc: Allow to load udfs only from plugin_dir. On windows, refuse to open udf in case it's path contains a slash. mysql-test/t/plugin-master.opt: New BitKeeper file ``mysql-test/t/plugin-master.opt'' mysql-test/t/udf-master.opt: New BitKeeper file ``mysql-test/t/udf-master.opt''
Diffstat (limited to 'mysql-test/t/udf-master.opt')
-rw-r--r--mysql-test/t/udf-master.opt1
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/t/udf-master.opt b/mysql-test/t/udf-master.opt
new file mode 100644
index 00000000000..7d8786c156a
--- /dev/null
+++ b/mysql-test/t/udf-master.opt
@@ -0,0 +1 @@
+$UDF_EXAMPLE_LIB_OPT