[MDEV-11962] RPM Lint: missing-call-to-chdir-with-chroot /usr/libexec/mysqld Created: 2017-02-01 Updated: 2017-10-28 Resolved: 2017-10-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Minor |
| Reporter: | Michal Schorm | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Please check this RPM Lint error:
Thanks |
| Comments |
| Comment by Sergei Golubchik [ 2017-05-26 ] | ||||||
|
The code is (looking at 10.1, but should be identical everywhere, it didn't change for years, iirc):
Here, if chroot() fails, the server startup is aborted. Otherwise the server does chdir() immediately after. I don't know what confused rpm lint — perhaps my_setwd() obscures chdir() and rpm lint doesn't see it? But there surely is chdir() directly after chroot(). | ||||||
| Comment by Michal Schorm [ 2017-10-28 ] | ||||||
|
Can be closed. Yes, it is probabbly "my_setwd()", which RPMLint can't see into. |