Mercurial > dovecot > core-2.2
changeset 12714:7ec1982fb275
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 | 16ce45dbcb53 |
children | ff73c325ff01 |
files | src/util/script.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/util/script.c Wed Jan 26 21:47:52 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" @@ -102,6 +103,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);