summaryrefslogtreecommitdiff
path: root/src/core/dbus-manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-21 20:49:04 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-21 21:12:36 +0100
commit6ce270b10ad5538fb60dabcf409a49a9c5fd0e8d (patch)
tree5caa8aa6042f1b369d04be187dd278b5e5c6a41d /src/core/dbus-manager.c
parent21586b77de9bad401f245dd55b75cedb0c2e9b7c (diff)
core: fix deserialization of StartTransientUnit() parameters
Diffstat (limited to 'src/core/dbus-manager.c')
-rw-r--r--src/core/dbus-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c
index bc0c3109e3..b284c5e197 100644
--- a/src/core/dbus-manager.c
+++ b/src/core/dbus-manager.c
@@ -547,11 +547,11 @@ static int method_start_transient_unit(sd_bus *bus, sd_bus_message *message, voi
if (mode < 0)
return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Job mode %s is invalid.", smode);
- r = manager_load_unit(m, name, NULL, error, &u);
+ r = selinux_access_check(bus, message, "start", error);
if (r < 0)
return r;
- r = selinux_unit_access_check(u, bus, message, "start", error);
+ r = manager_load_unit(m, name, NULL, error, &u);
if (r < 0)
return r;