summaryrefslogtreecommitdiff
path: root/regex
diff options
context:
space:
mode:
authoranozdrin@mysql.com <>2006-02-01 13:28:45 +0300
committeranozdrin@mysql.com <>2006-02-01 13:28:45 +0300
commit0a1f7e921bb08a2f2119f59259278170222fb65e (patch)
treeb3bc2ba52c3c27d83ec06079218da2c9e8a4dc79 /regex
parentf90661e443575e4fce0fe972c0a733ebe1561074 (diff)
downloadmariadb-git-0a1f7e921bb08a2f2119f59259278170222fb65e.tar.gz
Fix for BUG#9412: Triggers: should have trigger privilege.
Implement table-level TRIGGER privilege to control access to triggers. Before this path global SUPER privilege was used for this purpose, that was the big security problem. In details, before this patch SUPER privilege was required: - for the user at CREATE TRIGGER time to create a new trigger; - for the user at DROP TRIGGER time to drop the existing trigger; - for the definer at trigger activation time to execute the trigger (if the definer loses SUPER privilege, all its triggers become unavailable); This patch changes the behaviour in the following way: - TRIGGER privilege on the subject table for trigger is required: - for the user at CREATE TRIGGER time to create a new trigger; - for the user at DROP TRIGGER time to drop the existing trigger; - for the definer at trigger activation time to execute the trigger (if the definer loses TRIGGER privilege on the subject table, all its triggers on this table become unavailable). - SUPER privilege is still required: - for the user at CREATE TRIGGER time to explicitly set the trigger definer to the user other than CURRENT_USER(). When the server works with database of the previous version (w/o TRIGGER privilege), or if the database is being upgraded from the previous versions, TRIGGER privilege is granted to whose users, who have CREATE privilege.
Diffstat (limited to 'regex')
0 files changed, 0 insertions, 0 deletions