From 39f4504de81c081e562139f1aab0a0388bc03b5f Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sun, 4 Feb 2024 19:38:20 +0800 Subject: [PATCH] core/service: allow ExecStartPost= cmds to access creds Fixes #31194 --- src/core/service.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)) -- 2.47.3