aboutsummaryrefslogtreecommitdiffstats
path: root/package/system
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2020-03-05 09:33:52 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2020-03-29 18:47:26 +0200
commitbf5ea2a8dc8397f7b0dd975c06f9fc5dd04cb91b (patch)
tree3e9c761108f9e4e10520ef95c10fa5ce4108f01e /package/system
parent83381ce95d6f279094c8753d382b58c3773520bf (diff)
downloadupstream-bf5ea2a8dc8397f7b0dd975c06f9fc5dd04cb91b.tar.gz
upstream-bf5ea2a8dc8397f7b0dd975c06f9fc5dd04cb91b.tar.bz2
upstream-bf5ea2a8dc8397f7b0dd975c06f9fc5dd04cb91b.zip
rpcd: fix respawn settings
Commit 432ec292ccc8 ("rpcd: add respawn param") has introduced infinite restarting of the service which could be reached over network. This is not recommended security practice as it might give potential adversary infinite number of tries in case there might be some issue in the rpcd or its surrounding stack. So lets remove the currently bogus `respawn_retry` variable (it wasn't possible to override it anyway), reverting to the previous default max. of 5 service restarts which could be now overriden via system's UCI settings if desired. Cc: Jo-Philip Wich <jow@mein.io> Cc: Florian Eckert <fe@dev.tdt.de> Cc: Hauke Mehrtens <hauke@hauke-m.de> Fixes: 432ec292ccc8 ("rpcd: add respawn param") Signed-off-by: Petr Štetiar <ynezz@true.cz> (cherry picked from commit 52e6fb13692986c76fd32159fb9fc82d712a5c3f)
Diffstat (limited to 'package/system')
-rwxr-xr-xpackage/system/rpcd/files/rpcd.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/rpcd/files/rpcd.init b/package/system/rpcd/files/rpcd.init
index b1061b906c..4c701a28e6 100755
--- a/package/system/rpcd/files/rpcd.init
+++ b/package/system/rpcd/files/rpcd.init
@@ -12,7 +12,7 @@ start_service() {
procd_open_instance
procd_set_param command "$PROG" ${socket:+-s "$socket"} ${timeout:+-t "$timeout"}
- procd_set_param respawn ${respawn_retry:-0}
+ procd_set_param respawn
procd_close_instance
}