Mercurial > dovecot > core-2.2
changeset 12607:40f668d36547
script: Root permissions weren't being dropped before executing the script.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 30 Jan 2011 17:51:17 +0200 |
parents | 54bcc1728a43 |
children | b96efbad2fa4 |
files | src/util/script.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/util/script.c Fri Jan 28 19:41:03 2011 +0200 +++ b/src/util/script.c Sun Jan 30 17:51:17 2011 +0200 @@ -5,6 +5,7 @@ #include "str.h" #include "env-util.h" #include "execv-const.h" +#include "restrict-access.h" #include "master-interface.h" #include "master-service.h" @@ -111,6 +112,9 @@ argv += optind; master_service_init_log(master_service, "script: "); + restrict_access_by_env(NULL, FALSE); + restrict_access_allow_coredumps(TRUE); + master_service_init_finish(master_service); master_service_set_service_count(master_service, 1);