Skip to content

Instantly share code, notes, and snippets.

@ryancdotorg
Created June 6, 2019 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryancdotorg/2643c2662a7e0f7554ecec295fb23c0c to your computer and use it in GitHub Desktop.
Save ryancdotorg/2643c2662a7e0f7554ecec295fb23c0c to your computer and use it in GitHub Desktop.
patch to allow exim's `${run {...}}` expansion to be globally disabled. Add `forbid_run = true` to exim's main config.
--- old/src/readconf.c 2019-03-09 20:41:17.000000000 +0000
+++ new/src/readconf.c 2019-03-13 07:44:59.855569375 +0000
@@ -152,6 +152,7 @@
{ "extra_local_interfaces", opt_stringptr, &extra_local_interfaces },
{ "extract_addresses_remove_arguments", opt_bool, &extract_addresses_remove_arguments },
{ "finduser_retries", opt_int, &finduser_retries },
+ { "forbid_run", opt_bit | (RDON_RUN << 16), &expand_forbid },
{ "freeze_tell", opt_stringptr, &freeze_tell },
{ "gecos_name", opt_stringptr, &gecos_name },
{ "gecos_pattern", opt_stringptr, &gecos_pattern },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment