[MDEV-15473] Isolate/sandbox PAM modules, so that they can't crash the server Created: 2018-03-05 Updated: 2021-09-01 Resolved: 2018-07-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System, Plugin - pam |
| Fix Version/s: | 10.4.0 |
| Type: | Task | Priority: | Critical |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 5 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | 10.4.0-1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Buggy PAM modules can currently crash the server. See |
| Comments |
| Comment by Ralf Gebhardt [ 2018-03-28 ] |
|
serg If I understand this correctly, the server is crashing. From my point of view this should be a bug, do you agree? |
| Comment by Sergei Golubchik [ 2018-03-28 ] |
|
No, this is not a bug. Everything works as designed. By design, a plugin is executed in the server address space, in the server process. So if the plugin crashes, it is expected that it will take the whole server with it. It is possible, of course, to redesign the plugin architecture and execute plugins in a sandbox. But this will be by no means a bug fix. |
| Comment by Ralf Gebhardt [ 2018-04-09 ] |
|
By getting |
| Comment by Alexey Botchkov [ 2018-06-04 ] |
|
http://lists.askmonty.org/pipermail/commits/2018-June/012595.html Short description - I didn't add tests here intentionally - would like to agree the overall design first. |
| Comment by Alexey Botchkov [ 2018-07-01 ] |
|
http://lists.askmonty.org/pipermail/commits/2018-July/012669.html |
| Comment by Alexey Botchkov [ 2018-07-03 ] |
|
Final patch. |
| Comment by Sergei Golubchik [ 2018-07-03 ] |
|
still need to check that filesystem permissions on the new directory is set correctly and minor cleanup in tests. |
| Comment by Alexey Botchkov [ 2018-07-05 ] |
|
http://lists.askmonty.org/pipermail/commits/2018-July/012680.html |
| Comment by Alexey Botchkov [ 2018-07-09 ] |
|
http://lists.askmonty.org/pipermail/commits/2018-July/012691.html |
| Comment by Alexey Botchkov [ 2018-07-09 ] |
|
http://lists.askmonty.org/pipermail/commits/2018-July/012692.html |
| Comment by Alexey Botchkov [ 2018-07-14 ] |
|
http://lists.askmonty.org/pipermail/commits/2018-July/012698.html |