diff options
author | unknown <monty@mashka.mysql.fi> | 2003-05-07 23:59:24 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-05-07 23:59:24 +0300 |
commit | a57e7732897ee7973d82dccea0425c436845066a (patch) | |
tree | daddc57eeedc8a9ecec290538f8ecd00e81c06bb /tests/grant.pl | |
parent | d4b465e2f3e871af1f5e7260055b4055bbe2a3f7 (diff) | |
download | mariadb-git-a57e7732897ee7973d82dccea0425c436845066a.tar.gz |
Security patch to remove wrong error when one had a global update/delete privilige and a database specific SELECT privilege.
sql/sql_acl.cc:
Security patch
sql/sql_base.cc:
Security patch
sql/sql_parse.cc:
Security patch
tests/grant.pl:
Test of security patch
tests/grant.res:
Test of security patch
Diffstat (limited to 'tests/grant.pl')
-rw-r--r-- | tests/grant.pl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/grant.pl b/tests/grant.pl index bf67ce5e790..8ec83c85349 100644 --- a/tests/grant.pl +++ b/tests/grant.pl @@ -214,8 +214,21 @@ user_query("update $opt_database.test set b=b+1",1); safe_query("grant SELECT on *.* to $user"); user_connect(0); user_query("update $opt_database.test set b=b+1"); +user_query("update $opt_database.test set b=b+1 where a > 0"); safe_query("revoke SELECT on *.* from $user"); +safe_query("grant SELECT on $opt_database.* to $user"); user_connect(0); +user_query("update $opt_database.test set b=b+1"); +user_query("update $opt_database.test set b=b+1 where a > 0"); +safe_query("grant UPDATE on *.* to $user"); +user_connect(0); +user_query("update $opt_database.test set b=b+1"); +user_query("update $opt_database.test set b=b+1 where a > 0"); +safe_query("revoke UPDATE on *.* from $user"); +safe_query("revoke SELECT on $opt_database.* from $user"); +user_connect(0); +user_query("update $opt_database.test set b=b+1 where a > 0",1); +user_query("update $opt_database.test set b=b+1",1); # Add one privilege at a time until the user has all privileges user_query("select * from test",1); |