summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2010-12-14 00:30:30 -0500
committerPhil Pennock <pdp@exim.org>2010-12-14 00:30:30 -0500
commit79d4bc3d95d75446a2d149ca35525f078a978027 (patch)
tree6bb1da7fdc070a2ad3b8d2b111ecb588791f2733 /src
parent1e83d68b72d24d6255d2e78facbe01656515ab4f (diff)
Change the default for system_filter_user.
If the system filter needs to be run as root, let that be explicitly configured. The default is now the Exim run-time user. Document this, and a couple of other points, in IncompatibleChanges.
Diffstat (limited to 'src')
-rw-r--r--src/src/exim.c4
-rw-r--r--src/src/globals.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/src/exim.c b/src/src/exim.c
index 6b82013f8..729114c1c 100644
--- a/src/src/exim.c
+++ b/src/src/exim.c
@@ -1268,6 +1268,10 @@ if (!route_finduser(US CONFIGURE_OWNERNAME, NULL, &config_uid))
}
#endif
+/* We default the system_filter_user to be the Exim run-time user, as a
+sane non-root value. */
+system_filter_uid = exim_uid;
+
#ifdef CONFIGURE_GROUPNAME
if (!route_findgroup(US CONFIGURE_GROUPNAME, &config_gid))
{
diff --git a/src/src/globals.c b/src/src/globals.c
index f77fbcc63..500691cb0 100644
--- a/src/src/globals.c
+++ b/src/src/globals.c
@@ -1189,7 +1189,7 @@ uschar *system_filter_reply_transport = NULL;
gid_t system_filter_gid = 0;
BOOL system_filter_gid_set = FALSE;
-uid_t system_filter_uid = 0;
+uid_t system_filter_uid = (uid_t)-1;
BOOL system_filter_uid_set = FALSE;
BOOL system_filtering = FALSE;