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/service.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/service.h') diff --git a/src/core/service.h b/src/core/service.h index 5bcfd1433..ad0b3b381 100644 --- a/src/core/service.h +++ b/src/core/service.h @@ -162,6 +162,8 @@ struct Service { pid_t main_pid, control_pid; int socket_fd; + int bus_endpoint_fd; + bool permissions_start_only; bool root_directory_start_only; bool remain_after_exit; -- cgit v1.2.3