[MDEV-29465] Inherited columns privs for roles wrongly set mysql.tables_priv column Created: 2022-09-05 Updated: 2022-11-30 Resolved: 2022-09-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.3 |
| Fix Version/s: | 10.3.37, 10.4.27, 10.5.18, 10.6.11, 10.7.7, 10.8.6, 10.9.4 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Vicențiu Ciorbaru | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
The following test case shows that mysql.tables_priv is wrongly populated
The cause of this bug is the mixing of GRANT_TABLE::cols and GRANT_TABLE::init_cols within the mysql_table_grant function. There is a similar bug for GRANT_COLUMN::rights and GRANT_COLUMN::init_rights. |
| Comments |
| Comment by Vicențiu Ciorbaru [ 2022-09-05 ] |
|
Hi Sergei! While working on negative grants, I identified this bug. https://github.com/MariaDB/server/pull/2256 Please review a fix for this. |
| Comment by Sergei Golubchik [ 2022-09-12 ] |
|
fa75057b238 is ok to push |