[MDEV-17751] Implement GRANT OPTION behavior that conforms to SQL standard Created: 2018-11-16 Updated: 2019-04-15 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Muhammad Irfan | Assignee: | Sergei Golubchik |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
GRANT OPTION is not working as expected. Check below test case.
So, at this point GRANT OPTION is only allocated to SELECT but it assigned to UPDATE, REFERENCES privilege too. Let's verify If UPDATE, REFERENCES can be assigned to other user from assigned user.
So, user can assign privileges which are not granted with GRANT OPTION i.e. UPDATE, REFERENCES |
| Comments |
| Comment by Sergei Golubchik [ 2018-11-18 ] |
|
GRANT OPTION works exactly as designed and as documented. But unfortunately not as specified in the SQL standard. In MySQL and in MariaDB GRANT OPTION is a privilege not an option. If one is granted this privilege, she can grant anything that is granted on the same level, see https://mariadb.com/kb/en/library/grant/#the-grant-option-privilege |
| Comment by Muhammad Irfan [ 2018-11-19 ] |
|
I converted it as Feature Request. |