summaryrefslogtreecommitdiffstats
path: root/src/core/dbus-execute.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-02-13 06:16:35 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-02-21 01:05:40 +0100
commit280921f29e325ce40f3e24e5632972715c7f04fa (patch)
treef70614bf7b2718274e95290d20f7814ded2346bd /src/core/dbus-execute.c
parentcore/execute: clear bind_mounts (diff)
downloadsystemd-280921f29e325ce40f3e24e5632972715c7f04fa.tar.xz
systemd-280921f29e325ce40f3e24e5632972715c7f04fa.zip
core: fix DBus API for AppArmorProfile= and SmackProcessLabel=
Diffstat (limited to 'src/core/dbus-execute.c')
-rw-r--r--src/core/dbus-execute.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
index 628fdcd1e5..fcaae91bc1 100644
--- a/src/core/dbus-execute.c
+++ b/src/core/dbus-execute.c
@@ -2293,11 +2293,7 @@ int bus_exec_context_set_transient_property(
int ignore;
const char *s;
- r = sd_bus_message_enter_container(message, 'r', "bs");
- if (r < 0)
- return r;
-
- r = sd_bus_message_read(message, "bs", &ignore, &s);
+ r = sd_bus_message_read(message, "(bs)", &ignore, &s);
if (r < 0)
return r;