diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-04-15 01:50:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-04-15 01:51:37 +0200 |
commit | 4a875b6133c9ef0e984547f7ce3b09356be4f7bc (patch) | |
tree | d539ae06b51c83bed7f8c61bc01d588ad492a92c /src/libsystemd-bus/bus-kernel.c | |
parent | c62e11ce3966c55d23520b9f0785c7e839cf7f37 (diff) |
kdbus: parse cgroup meta data, too
Diffstat (limited to 'src/libsystemd-bus/bus-kernel.c')
-rw-r--r-- | src/libsystemd-bus/bus-kernel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c index f36f60e496..3a9b8af844 100644 --- a/src/libsystemd-bus/bus-kernel.c +++ b/src/libsystemd-bus/bus-kernel.c @@ -447,7 +447,9 @@ static int bus_kernel_make_message(sd_bus *bus, struct kdbus_msg *k, sd_bus_mess else if (d->type == KDBUS_MSG_SRC_CMDLINE) { m->cmdline = d->str; m->cmdline_length = l; - } else + } else if (d->type == KDBUS_MSG_SRC_CGROUP) + m->cgroup = d->str; + else log_debug("Got unknown field from kernel %llu", d->type); } @@ -553,7 +555,7 @@ int bus_kernel_create(const char *name, char **s) { make->flags = KDBUS_ACCESS_WORLD | KDBUS_POLICY_OPEN; make->bus_flags = 0; make->bloom_size = BLOOM_SIZE; - + make->cgroup_id = 1; assert_cc(BLOOM_SIZE % 8 == 0); p = strjoin("/dev/kdbus/", make->name, "/bus", NULL); |