mirror of
https://github.com/MariaDB/server.git
synced 2025-12-10 19:44:09 +03:00
Buq#32167 another privilege bypass with DATA/INDEX DIRECTORY.
test_if_data_home_dir fixed to look into real path.
Checks added to mi_open for symlinks into data home directory.
per-file messages:
include/my_sys.h
Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY.
my_is_symlink interface added
mysql-test/r/udf.result
test result fixed (not related to #32167)
mysys/my_symlink.c
my_is_symlink() implementsd
my_realpath() now returns the 'realpath' even if a file isn't a symlink
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
drop table if exists t1;
|
||||
CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
|
||||
Warnings:
|
||||
Warning 1105 plugin_dir was not specified
|
||||
CREATE FUNCTION myfunc_double RETURNS REAL SONAME "UDF_EXAMPLE_LIB";
|
||||
CREATE FUNCTION myfunc_nonexist RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
|
||||
ERROR HY000: Can't find function 'myfunc_nonexist' in library
|
||||
@@ -197,6 +199,8 @@ DROP FUNCTION avgcost;
|
||||
select * from mysql.func;
|
||||
name ret dl type
|
||||
CREATE FUNCTION is_const RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
|
||||
Warnings:
|
||||
Warning 1105 plugin_dir was not specified
|
||||
select IS_const(3);
|
||||
IS_const(3)
|
||||
const
|
||||
@@ -206,6 +210,8 @@ name ret dl type
|
||||
select is_const(3);
|
||||
ERROR 42000: FUNCTION test.is_const does not exist
|
||||
CREATE FUNCTION is_const RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
|
||||
Warnings:
|
||||
Warning 1105 plugin_dir was not specified
|
||||
select
|
||||
is_const(3) as const,
|
||||
is_const(3.14) as const,
|
||||
|
||||
Reference in New Issue
Block a user