summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-bus-chat.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-15 01:50:46 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-15 01:51:37 +0200
commit4a875b6133c9ef0e984547f7ce3b09356be4f7bc (patch)
treed539ae06b51c83bed7f8c61bc01d588ad492a92c /src/libsystemd-bus/test-bus-chat.c
parentc62e11ce3966c55d23520b9f0785c7e839cf7f37 (diff)
kdbus: parse cgroup meta data, too
Diffstat (limited to 'src/libsystemd-bus/test-bus-chat.c')
-rw-r--r--src/libsystemd-bus/test-bus-chat.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libsystemd-bus/test-bus-chat.c b/src/libsystemd-bus/test-bus-chat.c
index 5f9a7ba8b3..f457c8f88a 100644
--- a/src/libsystemd-bus/test-bus-chat.c
+++ b/src/libsystemd-bus/test-bus-chat.c
@@ -136,6 +136,7 @@ static int server(sd_bus *bus) {
while (!client1_gone || !client2_gone) {
_cleanup_bus_message_unref_ sd_bus_message *m = NULL;
pid_t pid = 0;
+ const char *label = NULL;
r = sd_bus_process(bus, &m);
if (r < 0) {
@@ -157,7 +158,11 @@ static int server(sd_bus *bus) {
continue;
sd_bus_message_get_pid(m, &pid);
- log_info("Got message! member=%s pid=%lu label=%s", strna(sd_bus_message_get_member(m)), (unsigned long) pid, strna(sd_bus_message_get_selinux_context(m)));
+ sd_bus_message_get_selinux_context(m, &label);
+ log_info("Got message! member=%s pid=%lu label=%s",
+ strna(sd_bus_message_get_member(m)),
+ (unsigned long) pid,
+ strna(label));
/* bus_message_dump(m); */
/* sd_bus_message_rewind(m, true); */