mirror of
https://github.com/pi-hole/pi-hole.git
synced 2026-11-23 16:48:52 +00:00
`/run/pihole-FTL.pid` is owned by the `pihole` user, but root reads it. `getFTLPID()` only rejected values starting with a non-digit, so `1+a[$(cmd)]` passed and was executed by the arithmetic `[[ ... -eq ... ]]` checks in `pihole`. The logrotate `postrotate` sent `kill -USR2` to whatever the file contained, including `-1`. 1. `getFTLPID()` accepts only a plain number whose `/proc/<pid>/comm` is `pihole-FTL`. 2. The logrotate `postrotate` uses `getFTLPID()`. The installer swaps this line in existing files, which are otherwise never replaced. Signed-off-by: DL6ER <dl6er@dl6er.de> |
||
|---|---|---|
| .. | ||
| database_migration | ||
| api.sh | ||
| COL_TABLE | ||
| list.sh | ||
| piholeCheckout.sh | ||
| piholeDebug.sh | ||
| piholeLogFlush.sh | ||
| piholeNetworkFlush.sh | ||
| query.sh | ||
| update.sh | ||
| updatecheck.sh | ||
| utils.sh | ||
| version.sh | ||