summaryrefslogtreecommitdiff
path: root/src/run
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-08-21 10:09:33 +0200
committerGitHub <noreply@github.com>2018-08-21 10:09:33 +0200
commit7692fed98b784be92f900151d867f0be0975e062 (patch)
tree74af3a142a54344cb739ff0bc485bb8ad5ef60ec /src/run
parenta795e5a9dd7a38817545226fec721075e5080ade (diff)
parent43ad3ad7ea3dfc93d91e8bc3a47a03596705c93c (diff)
downloadsystemd-7692fed98b784be92f900151d867f0be0975e062.tar.gz
systemd-7692fed98b784be92f900151d867f0be0975e062.tar.bz2
systemd-7692fed98b784be92f900151d867f0be0975e062.zip
Merge pull request #9783 from poettering/get-user-creds-flags
beef up get_user_creds() a bit and other improvements
Diffstat (limited to 'src/run')
-rw-r--r--src/run/run.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/run/run.c b/src/run/run.c
index 5fe54d277a..697b517c65 100644
--- a/src/run/run.c
+++ b/src/run/run.c
@@ -1239,7 +1239,7 @@ static int start_transient_scope(
if (arg_exec_group) {
gid_t gid;
- r = get_group_creds(&arg_exec_group, &gid);
+ r = get_group_creds(&arg_exec_group, &gid, 0);
if (r < 0)
return log_error_errno(r, "Failed to resolve group %s: %m", arg_exec_group);
@@ -1252,7 +1252,7 @@ static int start_transient_scope(
uid_t uid;
gid_t gid;
- r = get_user_creds_clean(&arg_exec_user, &uid, &gid, &home, &shell);
+ r = get_user_creds(&arg_exec_user, &uid, &gid, &home, &shell, USER_CREDS_CLEAN|USER_CREDS_PREFER_NSS);
if (r < 0)
return log_error_errno(r, "Failed to resolve user %s: %m", arg_exec_user);