diff options
author | Daniel Mack <zonque@gmail.com> | 2014-03-07 17:29:01 +0100 |
---|---|---|
committer | Daniel Mack <zonque@gmail.com> | 2014-03-07 19:14:05 +0100 |
commit | 1683342af1fc85e75ba21264bbcedc26aef0fa39 (patch) | |
tree | 13cc448ac5d6fbf2e5646495ed530fc41fb12f71 /src/core/busname.c | |
parent | f7c7cd03d1e9a9a4bb6925fb64d8423f4a6a2fdc (diff) |
sd-bus: add support for policy upload on activator connections
Activator connections may upload policy when registering to the bus.
This patch contains code to translate between BusNamePolicy objects and
the kdbus specific items.
Diffstat (limited to 'src/core/busname.c')
-rw-r--r-- | src/core/busname.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/busname.c b/src/core/busname.c index 4806e741ca..bd7d02d73b 100644 --- a/src/core/busname.c +++ b/src/core/busname.c @@ -233,7 +233,8 @@ static int busname_open_fd(BusName *n) { if (n->starter_fd >= 0) return 0; - n->starter_fd = bus_kernel_create_starter(UNIT(n)->manager->running_as == SYSTEMD_SYSTEM ? "system" : "user", n->name); + n->starter_fd = bus_kernel_create_starter(UNIT(n)->manager->running_as == SYSTEMD_SYSTEM ? "system" : "user", + n->name, n->policy); if (n->starter_fd < 0) { log_warning_unit(UNIT(n)->id, "Failed to create starter fd: %s", strerror(-n->starter_fd)); return n->starter_fd; |