diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:24:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:24:36 +0000 |
commit | 06eaf7232e9a920468c0f8d74dcf2fe8b555501c (patch) | |
tree | e2c7b5777f728320e5b5542b6213fd3591ba51e2 /mysql-test/main/grant_kill.result | |
parent | Initial commit. (diff) | |
download | mariadb-06eaf7232e9a920468c0f8d74dcf2fe8b555501c.tar.xz mariadb-06eaf7232e9a920468c0f8d74dcf2fe8b555501c.zip |
Adding upstream version 1:10.11.6.upstream/1%10.11.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/main/grant_kill.result')
-rw-r--r-- | mysql-test/main/grant_kill.result | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/mysql-test/main/grant_kill.result b/mysql-test/main/grant_kill.result new file mode 100644 index 00000000..e1243a39 --- /dev/null +++ b/mysql-test/main/grant_kill.result @@ -0,0 +1,71 @@ +# +# Start of 10.5 tests +# +# +# MDEV-21743 Split up SUPER privilege to smaller privileges +# +# +# Test that KILL is not allowed without CONNECTION ADMIN or SUPER +# +CREATE USER foo@localhost; +GRANT SELECT ON *.* TO foo@localhost; +CREATE USER bar@localhost; +GRANT ALL PRIVILEGES ON *.* TO bar@localhost; +REVOKE CONNECTION ADMIN, SUPER ON *.* FROM bar@localhost; +connect foo,localhost,foo,,; +connect bar,localhost,bar,,; +SELECT user FROM information_schema.processlist ORDER BY user; +user +bar +foo +root +KILL ID; +ERROR HY000: You are not owner of thread ID +disconnect foo; +disconnect bar; +connection default; +DROP USER foo@localhost; +DROP USER bar@localhost; +# +# Test that KILL is allowed with CONNECTION ADMIN +# +CREATE USER foo@localhost; +GRANT SELECT ON *.* TO foo@localhost; +CREATE USER bar@localhost; +GRANT PROCESS, CONNECTION ADMIN ON *.* TO bar@localhost; +connect foo,localhost,foo,,; +connect bar,localhost,bar,,; +SELECT user FROM information_schema.processlist ORDER BY user; +user +bar +foo +root +KILL ID; +connection default; +disconnect foo; +disconnect bar; +DROP USER foo@localhost; +DROP USER bar@localhost; +# +# Test that KILL is allowed with SUPER +# +CREATE USER foo@localhost; +GRANT SELECT ON *.* TO foo@localhost; +CREATE USER bar@localhost; +GRANT PROCESS, SUPER ON *.* TO bar@localhost; +connect foo,localhost,foo,,; +connect bar,localhost,bar,,; +SELECT user FROM information_schema.processlist ORDER BY user; +user +bar +foo +root +KILL ID; +connection default; +disconnect foo; +disconnect bar; +DROP USER foo@localhost; +DROP USER bar@localhost; +# +# End of 10.5 tests +# |