[MDEV-24213] mariadb-upgrade ignores setgid bit on datadir Created: 2020-11-15 Updated: 2020-11-19 Resolved: 2020-11-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients, Upgrades |
| Affects Version/s: | 10.5.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Karl Levik | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Fedora release 31 |
||
| Description |
|
When the setgid bit is set on a directory, all the files created inside it should get the group of that directory. The MariaDB server itself appears to observe this rule. However, the mariadb-upgrade utility does not. With datadir=/var/lib/mariadb:
I think the mariadb-upgrade tool should follow the normal convention regarding the setgid bit on directories. Note that if the setgid bit is set on the actual datadir's mysql folder, then mariadb-upgrade seems to behave as expected. |
| Comments |
| Comment by Karl Levik [ 2020-11-16 ] |
|
Apologies, I think I was wrong to imply that the convention is that all files created inside such a directory should get the group of the parent directory. I think this only works on the first level, i.e. not in sub-directories. Therefore this can probably be closed as "not a bug". |
| Comment by Sergei Golubchik [ 2020-11-19 ] |
|
closed as requested |