diff options
author | Daniel Mack <zonque@gmail.com> | 2014-08-18 19:58:42 +0200 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2014-09-08 11:06:45 +0200 |
commit | e7d718afdb28b1049d382604e5e7bf1d213a8291 (patch) | |
tree | c36560fef6105abc4dbcbc9b5c3c0b754f1752e0 /src/libsystemd/sd-bus/bus-kernel.h | |
parent | bb7dd0b04a6e89674100476eed0bbd05c6a4cbd8 (diff) |
bus: add code to create custom endpoints and set their policy
Custom endpoints are alternative connection points to a bus, allowing
specific policy to be uploaded.
Add two functions to bus-kernel. One to create such endpoints, and another
one for setting a policy for them.
Diffstat (limited to 'src/libsystemd/sd-bus/bus-kernel.h')
-rw-r--r-- | src/libsystemd/sd-bus/bus-kernel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/bus-kernel.h b/src/libsystemd/sd-bus/bus-kernel.h index 182f953d47..f1d832a764 100644 --- a/src/libsystemd/sd-bus/bus-kernel.h +++ b/src/libsystemd/sd-bus/bus-kernel.h @@ -24,6 +24,7 @@ #include <stdbool.h> #include "busname.h" +#include "bus-endpoint.h" #include "sd-bus.h" #define KDBUS_ITEM_NEXT(item) \ @@ -69,8 +70,11 @@ int bus_kernel_open_bus_fd(const char *bus, char **path); int bus_kernel_make_starter(int fd, const char *name, bool activating, bool accept_fd, BusNamePolicy *policy, BusPolicyAccess world_policy); int bus_kernel_create_bus(const char *name, bool world, char **s); +int bus_kernel_create_endpoint(const char *bus_name, const char *ep_name, char **path); int bus_kernel_create_domain(const char *name, char **s); +int bus_kernel_set_endpoint_policy(int fd, uid_t uid, BusEndpoint *ep); + int bus_kernel_pop_memfd(sd_bus *bus, void **address, size_t *mapped, size_t *allocated); void bus_kernel_push_memfd(sd_bus *bus, int fd, void *address, size_t mapped, size_t allocated); |