1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-26 01:44:06 +03:00
Files
mariadb/mysql-test/r
Dmitry Lenev 94fbedd3e3 Fix for bug #58499 "DEFINER-security view selecting from
INVOKER-security view access check wrong".

When privilege checks were done for tables used from an 
INVOKER-security view which in its turn was used from 
a DEFINER-security view connection's active security
context was incorrectly used instead of security context
with privileges of the second view's creator.

This meant that users which had enough rights to access
the DEFINER-security view and as result were supposed to 
be able successfully access it were unable to do so in 
cases when they didn't have privileges on underlying tables 
of the INVOKER-security view.

This problem was caused by the fact that for INVOKER-security
views TABLE_LIST::security_ctx member for underlying tables
were set to 0 even in cases when particular view was used from 
another DEFINER-security view. This meant that when checks of
privileges on these underlying tables was done in
setup_tables_and_check_access() active connection security 
context was used instead of context corresponding to the 
creator of caller view.

This fix addresses the problem by ensuring that underlying
tables of an INVOKER-security view inherit security context
from the view and thus correct security context is used for
privilege checks on underlying tables in cases when such view 
is used from another view with DEFINER-security.
2011-01-12 16:08:30 +03:00
..
2010-02-25 23:13:11 +04:00
2010-03-09 16:09:32 +01:00
2010-12-14 12:33:03 +03:00
2010-12-21 15:30:07 +03:00
2009-09-02 18:58:17 +02:00
2010-12-14 12:33:03 +03:00
2010-12-01 12:25:31 +05:30
2010-12-16 16:40:52 +02:00
2009-11-06 17:54:19 +03:00
2010-01-29 16:54:27 +02:00
2010-10-15 20:13:35 +05:00
2009-10-27 14:09:36 +04:00
2010-10-04 12:51:26 +04:00
2009-11-27 18:10:28 +02:00
2010-12-14 12:33:03 +03:00