# HG changeset patch # User Timo Sirainen # Date 1296402677 -7200 # Node ID 40f668d3654714cc60b016050e7de4571fc88c6b # Parent 54bcc1728a43760da1a52253ef6d9341b7c4c10a script: Root permissions weren't being dropped before executing the script. diff -r 54bcc1728a43 -r 40f668d36547 src/util/script.c --- 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);