X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fexecute.h;h=c45dde53a6452af5641199ba94000b05038ccc19;hb=f1f00dbb7f3741b30d4a26b1a8b65ec46ff1fde3;hp=f31f0c9f27efba8eb9f5f1dd7ed7a73be6397e20;hpb=9fa95f8539a380e93f760956bc6982e57f5bf3af;p=elogind.git diff --git a/src/core/execute.h b/src/core/execute.h index f31f0c9f2..c45dde53a 100644 --- a/src/core/execute.h +++ b/src/core/execute.h @@ -41,6 +41,7 @@ typedef struct ExecParameters ExecParameters; #include "fdset.h" #include "missing.h" #include "namespace.h" +#include "bus-endpoint.h" typedef enum ExecInput { EXEC_INPUT_NULL, @@ -188,6 +189,9 @@ struct ExecContext { bool ioprio_set:1; bool cpu_sched_set:1; bool no_new_privileges_set:1; + + /* custom dbus enpoint */ + BusEndpoint *bus_endpoint; }; #include "cgroup.h" @@ -200,12 +204,15 @@ struct ExecParameters { bool apply_chroot; bool apply_tty_stdin; bool confirm_spawn; + bool selinux_context_net; CGroupControllerMask cgroup_supported; const char *cgroup_path; const char *runtime_prefix; const char *unit_id; usec_t watchdog_usec; int *idle_pipe; + char *bus_endpoint_path; + int bus_endpoint_fd; }; int exec_spawn(ExecCommand *command, @@ -226,6 +233,7 @@ void exec_command_dump(ExecCommand *c, FILE *f, const char *prefix); void exec_command_dump_list(ExecCommand *c, FILE *f, const char *prefix); void exec_command_append_list(ExecCommand **l, ExecCommand *e); int exec_command_set(ExecCommand *c, const char *path, ...); +int exec_command_append(ExecCommand *c, const char *path, ...); void exec_context_init(ExecContext *c); void exec_context_done(ExecContext *c); @@ -233,7 +241,7 @@ void exec_context_dump(ExecContext *c, FILE* f, const char *prefix); int exec_context_destroy_runtime_directory(ExecContext *c, const char *runtime_root); -int exec_context_load_environment(const ExecContext *c, char ***l); +int exec_context_load_environment(const ExecContext *c, const char *unit_id, char ***l); bool exec_context_may_touch_console(ExecContext *c);