From e44da745d19b9e02e67e32ea82c3bad86175120c Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Fri, 22 Aug 2014 19:02:03 +0200 Subject: 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. --- src/core/execute.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/execute.h') 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, -- cgit v1.2.3-54-g00ecf