summaryrefslogtreecommitdiff
path: root/src/core/service.h
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-08-22 19:02:03 +0200
committerDaniel Mack <daniel@zonque.org>2014-09-08 14:15:02 +0200
commite44da745d19b9e02e67e32ea82c3bad86175120c (patch)
tree7b7192f12d3607faea9c985020eb85fb569b1c28 /src/core/service.h
parent060e088e94852cbe166592429c330e3997c21c4c (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/service.h')
-rw-r--r--src/core/service.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/service.h b/src/core/service.h
index 5bcfd14339..ad0b3b381e 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;