diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-20 13:14:30 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-20 13:14:30 +0000 |
commit | 11c49dc9ac730bdaa2f6b26ff877b9ba87f38572 (patch) | |
tree | 25cbd03c288de1579f620e951e2d4effe97e185c /src/rspamd.c | |
parent | cd2f92e40eca3ac7036e5cac9f90969a8d26655f (diff) | |
download | rspamd-11c49dc9ac730bdaa2f6b26ff877b9ba87f38572.tar.gz rspamd-11c49dc9ac730bdaa2f6b26ff877b9ba87f38572.zip |
[Fix] Set rspamd user to initialise supplementary groups on reload
Issue: #2693
Closes: #2693
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 88b44d773..85191e949 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -178,6 +178,7 @@ read_cmd_line (gint *argc, gchar ***argv, struct rspamd_config *cfg) else { cfg->cfg_name = cfg_names[0]; } + for (i = 1; i < cfg_num; i++) { r = fork (); if (r == 0) { @@ -313,6 +314,9 @@ reread_config (struct rspamd_main *rspamd_main) REF_RELEASE (old_cfg); msg_info_main ("config has been reread successfully"); rspamd_map_preload (rspamd_main->cfg); + + rspamd_main->cfg->rspamd_user = rspamd_user; + rspamd_main->cfg->rspamd_group = rspamd_group; } } |