diff options
Diffstat (limited to 'src/core/dbus-device.c')
-rw-r--r-- | src/core/dbus-device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/dbus-device.c b/src/core/dbus-device.c index dfbbafb66d..dbd91fe3db 100644 --- a/src/core/dbus-device.c +++ b/src/core/dbus-device.c @@ -22,6 +22,7 @@ #include "dbus-unit.h" #include "dbus-device.h" #include "dbus-common.h" +#include "selinux-access.h" #define BUS_DEVICE_INTERFACE \ " <interface name=\"org.freedesktop.systemd1.Device\">\n" \ @@ -61,5 +62,7 @@ DBusHandlerResult bus_device_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); } |