]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Disallow transitions on SyslogIdentityTag, since they do not work right
authorNick Mathewson <nickm@torproject.org>
Wed, 30 Sep 2015 16:33:02 +0000 (18:33 +0200)
committerNick Mathewson <nickm@torproject.org>
Wed, 30 Sep 2015 16:34:15 +0000 (18:34 +0200)
src/or/config.c

index 9b65addeeb51b117fd0f01c229cf38aa3f2da9e7..f8fc757a2a3f695d10a3b56f6db7b2a4eb8c26e6 100644 (file)
@@ -3997,6 +3997,12 @@ options_transition_allowed(const or_options_t *old,
     return -1;
   }
 
+  if (!opt_streq(old->SyslogIdentityTag, new_val->SyslogIdentityTag)) {
+    *msg = tor_strdup("While Tor is running, changing "
+                      "SyslogIdentityTag is not allowed.");
+    return -1;
+  }
+
   if ((old->HardwareAccel != new_val->HardwareAccel)
       || !opt_streq(old->AccelName, new_val->AccelName)
       || !opt_streq(old->AccelDir, new_val->AccelDir)) {