[MDEV-24345] WITH ADMIN OPTION privilege is missing from SHOW PRIVILEGES Created: 2020-12-03 Updated: 2021-02-12 Resolved: 2021-02-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.2.36, 10.3.27, 10.4.17, 10.5.8 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
For example:
However, this WITH ADMIN OPTION privilege does not seem to be present in SHOW PRIVILEGES, even though the similar WITH GRANT OPTION privilege is listed:
|
| Comments |
| Comment by Daniel Black [ 2020-12-05 ] |
|
also commit 0c303b52a96e24c4e59378e3f6e011d67e27b104 includes CREATE ROLE xxx WITH ADMIN yyy |
| Comment by Sergei Golubchik [ 2020-12-08 ] |
|
ADMIN OPTION is not a privilege, it's an option. It's questionable whether SHOW PRIVILEGES should show it. Note that historically GRANT OPTION is a privilege. |
| Comment by Daniel Black [ 2021-02-08 ] |
|
When using 'show privileges' programmatically like https://github.com/MariaDB/server/commit/86a7fab1755238710ed301578554d2c7d2d10d13, I wouldn't expect "ADMIN OPTION" to be used in the same way. If it where included in this list, the context would need to be in "Revoke Role", but even this form of "REVOKE ADMIN OPTION FOR role FROM grantee" is syntactically different from the normal revoke. As "WITH ADMIN OPTION" is the only GRANT ROLE option I'd suggest we leave this out of "SHOW PRIVILEGES". |