service: let's set EXEC_NEW_KEYRING through SET_FLAG()

Not that it really matters, but it matches how we set the flags in
manager_set_exec_params() too.
This commit is contained in:
Lennart Poettering
2017-08-10 15:02:49 +02:00
parent c71b2eb77e
commit 5bf7569cf8
+2 -1
View File
@@ -1358,7 +1358,8 @@ static int service_spawn(
} else
path = UNIT(s)->cgroup_path;
exec_params.flags |= MANAGER_IS_SYSTEM(UNIT(s)->manager) ? EXEC_NEW_KEYRING : 0;
/* System services should get a new keyring by default. */
SET_FLAG(exec_params.flags, EXEC_NEW_KEYRING, MANAGER_IS_SYSTEM(UNIT(s)->manager));
exec_params.argv = c->argv;
exec_params.environment = final_env;
exec_params.fds = fds;