chiark / gitweb /
namespace: add support for custom kdbus endpoint
authorDaniel Mack <zonque@gmail.com>
Fri, 22 Aug 2014 16:55:21 +0000 (18:55 +0200)
committerDaniel Mack <daniel@zonque.org>
Mon, 8 Sep 2014 12:12:56 +0000 (14:12 +0200)
commita610cc4f18c24a007e5a2cac21b2ecbd81e5f3c3
tree7e1dd169235a078a63a367fadbf2f54aa31ac6ca
parent501996231293506a85bf4d610938a655ddc8cb92
namespace: add support for custom kdbus endpoint

If a path to a previously created custom kdbus endpoint is passed in,
bind-mount a new devtmpfs that contains a 'bus' node, which in turn in
bind-mounted with the custom endpoint. This tmpfs then mounted over the
kdbus subtree that refers to the current bus.

This way, we can fake the bus node in order to lock down services with
a kdbus custom endpoint policy.
src/core/execute.c
src/core/namespace.c
src/core/namespace.h
src/test/test-ns.c