diff options
author | Daniel Mack <zonque@gmail.com> | 2014-08-22 19:02:03 +0200 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2014-09-08 14:15:02 +0200 |
commit | e44da745d19b9e02e67e32ea82c3bad86175120c (patch) | |
tree | 7b7192f12d3607faea9c985020eb85fb569b1c28 /src/core/execute.h | |
parent | 060e088e94852cbe166592429c330e3997c21c4c (diff) |
service: hook up custom endpoint logic
If BusPolicy= was passed, the parser function will have created
an ExecContext->bus_endpoint object, along with policy information.
In that case, create a kdbus endpoint, and pass its path name to the
namespace logic, to it will be mounted over the actual 'bus' node.
At endpoint creation time, no policy is updloaded. That is done after
fork(), through a separate call. This is necessary because we don't
know the real uid of the process earlier than that.
Diffstat (limited to 'src/core/execute.h')
-rw-r--r-- | src/core/execute.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/execute.h b/src/core/execute.h index e3cebfd72c..9c1f249cd4 100644 --- a/src/core/execute.h +++ b/src/core/execute.h @@ -210,6 +210,8 @@ struct ExecParameters { const char *unit_id; usec_t watchdog_usec; int *idle_pipe; + char *bus_endpoint_path; + int bus_endpoint_fd; }; int exec_spawn(ExecCommand *command, |