From: Mike Yuan Date: Sun, 4 Feb 2024 11:38:20 +0000 (+0800) Subject: core/service: allow ExecStartPost= cmds to access creds X-Git-Tag: v256-rc1~968^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F31197%2Fhead;p=thirdparty%2Fsystemd.git core/service: allow ExecStartPost= cmds to access creds Fixes #31194 --- diff --git a/src/core/service.c b/src/core/service.c index 41fe842db63..38934390f03 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -1608,8 +1608,7 @@ static ExecFlags service_exec_flags(ServiceExecCommand command_id) { flags |= EXEC_APPLY_TTY_STDIN; /* All start phases get access to credentials */ - // FIXME: SERVICE_EXEC_START_POST - if (IN_SET(command_id, SERVICE_EXEC_START_PRE, SERVICE_EXEC_START)) + if (IN_SET(command_id, SERVICE_EXEC_START_PRE, SERVICE_EXEC_START, SERVICE_EXEC_START_POST)) flags |= EXEC_WRITE_CREDENTIALS; if (IN_SET(command_id, SERVICE_EXEC_START_PRE, SERVICE_EXEC_START))