core: ensure execute/spawn functions can work without manager object

When switching to serialization later, the Manager object will not be
serialized, move parameters around instead
This commit is contained in:
Luca Boccassi
2023-10-12 13:37:22 +01:00
parent 97f53fecd6
commit 154eb43f38
13 changed files with 187 additions and 132 deletions
+8 -1
View File
@@ -427,6 +427,7 @@ struct ExecParameters {
const char *received_encrypted_credentials_directory;
const char *confirm_spawn;
bool shall_confirm_spawn;
usec_t watchdog_usec;
@@ -442,6 +443,12 @@ struct ExecParameters {
const char *notify_socket;
LIST_HEAD(OpenFile, open_files);
const char *fallback_smack_process_label;
char **files_env;
int user_lookup_fd;
int bpf_outer_map_fd;
};
#include "unit.h"
@@ -450,7 +457,7 @@ struct ExecParameters {
int exec_spawn(Unit *unit,
ExecCommand *command,
const ExecContext *context,
const ExecParameters *exec_params,
ExecParameters *exec_params,
ExecRuntime *runtime,
const CGroupContext *cgroup_context,
pid_t *ret);