summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2017-03-02 17:23:15 +0100
committerJakub Hrozek <jhrozek@redhat.com>2017-03-08 12:33:12 +0100
commit4358d76475f0292461a2a479d2149472db103c1d (patch)
treecec29869cfa198d21553c37abf58a1d43521355b
parentef268f9e691b0953763fad7e66f0724bed9b3419 (diff)
downloadsssd-4358d76475f0292461a2a479d2149472db103c1d.tar.gz
sssd-4358d76475f0292461a2a479d2149472db103c1d.tar.xz
sssd-4358d76475f0292461a2a479d2149472db103c1d.zip
SECRETS: Shutdown the responder in case it becomes idle
Similarly to what has been done for the other responders, let's shutdown the secrets responder in case it becomes idle. Resolves: https://pagure.io/SSSD/sssd/issue/3316 Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com> Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r--src/config/cfg_rules.ini1
-rw-r--r--src/responder/secrets/secsrv.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/config/cfg_rules.ini b/src/config/cfg_rules.ini
index dd0f04b1a..c01aa85ca 100644
--- a/src/config/cfg_rules.ini
+++ b/src/config/cfg_rules.ini
@@ -239,6 +239,7 @@ option = description
option = containers_nest_level
option = max_secrets
option = max_payload_size
+option = responder_idle_timeout
[rule/allowed_sec_users_options]
validator = ini_allowed_options
diff --git a/src/responder/secrets/secsrv.c b/src/responder/secrets/secsrv.c
index 28eca9d20..b0467e90e 100644
--- a/src/responder/secrets/secsrv.c
+++ b/src/responder/secrets/secsrv.c
@@ -100,6 +100,11 @@ static int sec_get_config(struct sec_ctx *sctx)
sctx->rctx->client_idle_timeout = 10;
}
+ ret = responder_setup_idle_timeout_config(sctx->rctx);
+ if (ret != EOK) {
+ goto fail;
+ }
+
ret = EOK;
fail: