summaryrefslogtreecommitdiffstats
path: root/src/run
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-11-18 19:30:02 +0100
committerMike Yuan <me@yhndnzj.com>2024-11-19 00:38:18 +0100
commiteea9d3eb106a91d4479d859603463bdfe3d262eb (patch)
tree8fe1e9a0e146948d54640b1f8ee2569bc64b5155 /src/run
parentbasic/user-util: introduce shell_is_placeholder() helper (diff)
downloadsystemd-eea9d3eb106a91d4479d859603463bdfe3d262eb.tar.xz
systemd-eea9d3eb106a91d4479d859603463bdfe3d262eb.zip
basic/user-util: split out placeholder suppression from USER_CREDS_CLEAN into its own flag
No functional change, preparation for later commits.
Diffstat (limited to 'src/run')
-rw-r--r--src/run/run.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/run/run.c b/src/run/run.c
index c62dce8950..1b13e74b83 100644
--- a/src/run/run.c
+++ b/src/run/run.c
@@ -2297,7 +2297,8 @@ static int start_transient_scope(sd_bus *bus) {
uid_t uid;
gid_t gid;
- r = get_user_creds(&arg_exec_user, &uid, &gid, &home, &shell, USER_CREDS_CLEAN|USER_CREDS_PREFER_NSS);
+ r = get_user_creds(&arg_exec_user, &uid, &gid, &home, &shell,
+ USER_CREDS_CLEAN|USER_CREDS_SUPPRESS_PLACEHOLDER|USER_CREDS_PREFER_NSS);
if (r < 0)
return log_error_errno(r, "Failed to resolve user %s: %m", arg_exec_user);