chiark / gitweb /
service: hook up custom endpoint logic
authorDaniel Mack <zonque@gmail.com>
Fri, 22 Aug 2014 17:02:03 +0000 (19:02 +0200)
committerDaniel Mack <daniel@zonque.org>
Mon, 8 Sep 2014 12:15:02 +0000 (14:15 +0200)
commite44da745d19b9e02e67e32ea82c3bad86175120c
tree7b7192f12d3607faea9c985020eb85fb569b1c28
parent060e088e94852cbe166592429c330e3997c21c4c
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.c
src/core/execute.h
src/core/service.c
src/core/service.h