[MDEV-9788] User permissions on procedures Created: 2016-03-24 Updated: 2022-09-08 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System, Data Definition - Procedure |
| Affects Version/s: | 10.0.19, 10.1.12 |
| Fix Version/s: | 10.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Diego Hellas | Assignee: | Sergei Golubchik |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Environment: |
CentOS 7 |
||
| Sprint: | 10.0.26 |
| Description |
|
This does not happen in MariaDB 10.0, or in MySQL. I have a server where read_only is enabled. But I have a procedure that needs to perform an INSERT to it have created a user with the SUPER permission. If the procedures below were created in MariaDB 10.0.x or MySQL, the execution is was successful!
call test_hellas(); To work in MariaDB 10.1 I need to create the procedure test_hellas2 with DEFINER = hellas_super. But why?
call test_hellas(); This is a bug or had a change in permissions mechanisms? |
| Comments |
| Comment by Elena Stepanova [ 2016-04-22 ] |
|
I don't see any difference in behavior between 10.1 and 10.0 – for me 10.0 also returns an error (tried 10.0.24, 10.0.21, 10.0.11). Which version are you using? |
| Comment by Diego Hellas [ 2016-04-25 ] |
|
@Elena, I'm not talking between versions MariaDB10.x, but compared with MySQL. |
| Comment by Elena Stepanova [ 2016-04-25 ] |
Actually, you were, the description says:
But okay, we will ignore that part. |
| Comment by Diego Hellas [ 2016-04-26 ] |
|
@Elena, I'll remake the my tests, now I was in doubt. |
| Comment by Diego Hellas [ 2016-05-24 ] |
|
@Elena, you are right, I remeka the test in MariaDB 10.0.19 and the same error. |
| Comment by Elena Stepanova [ 2016-06-09 ] |
|
diegohellas, thanks for checking. I'm not sure it should be closed just yet. I think something is actually wrong here, but wanted to get rid of the confusion regarding different versions and such. In pseudo-code below bold names stand for routines with super privileges. First scenario: proc3 modifies data Second scenario: proc3 modifies data Third scenario (not described above, I it tried additionally): proc3 modifies data The difference just does not make sense to me. I will ask serg for the second opinion. |
| Comment by Sergei Golubchik [ 2016-06-15 ] |
|
Reported the upstream bug: https://bugs.mysql.com/bug.php?id=81860 |
| Comment by Diego Hellas [ 2016-10-12 ] |
|
Hi @Sergei Golubchik Thank you for your attention! More information. |