diff options
Diffstat (limited to 'src/core/dbus-target.c')
-rw-r--r-- | src/core/dbus-target.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/dbus-target.c b/src/core/dbus-target.c index 67ffff870f..6a775506cc 100644 --- a/src/core/dbus-target.c +++ b/src/core/dbus-target.c @@ -24,6 +24,7 @@ #include "dbus-unit.h" #include "dbus-target.h" #include "dbus-common.h" +#include "selinux-access.h" #define BUS_TARGET_INTERFACE \ " <interface name=\"org.freedesktop.systemd1.Target\">\n" \ @@ -51,5 +52,7 @@ DBusHandlerResult bus_target_message_handler(Unit *u, DBusConnection *c, DBusMes { NULL, } }; + SELINUX_UNIT_ACCESS_CHECK(u, c, message, "status"); + return bus_default_message_handler(c, message, INTROSPECTION, INTERFACES_LIST, bps); } |