git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow only Exim or CONFIGURE_OWNER to use whitelisted configs with -C
[users/jgh/exim.git]
/
src
/
src
/
exim.c
diff --git
a/src/src/exim.c
b/src/src/exim.c
index 7498682316ce34a6101340dccd7a464cb84f1a8d..d5067215156185a8bbc9c202db5b4050efcb31ca 100644
(file)
--- a/
src/src/exim.c
+++ b/
src/src/exim.c
@@
-1973,7
+1973,11
@@
for (i = 1; i < argc; i++)
{
#ifdef TRUSTED_CONFIG_PREFIX_LIST
- if (Ustrstr(argrest, "/../"))
+ if ((real_uid != exim_uid
+ #ifdef CONFIGURE_OWNER
+ && real_uid != config_uid
+ #endif
+ ) || Ustrstr(argrest, "/../"))
trusted_config = FALSE;
else
{