summaryrefslogtreecommitdiff
path: root/src/core/dbus-automount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/dbus-automount.c')
-rw-r--r--src/core/dbus-automount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/dbus-automount.c b/src/core/dbus-automount.c
index b93e3ea35f..060cbf7707 100644
--- a/src/core/dbus-automount.c
+++ b/src/core/dbus-automount.c
@@ -24,6 +24,7 @@
#include "dbus-unit.h"
#include "dbus-automount.h"
#include "dbus-common.h"
+#include "selinux-access.h"
#define BUS_AUTOMOUNT_INTERFACE \
" <interface name=\"org.freedesktop.systemd1.Automount\">\n" \
@@ -68,5 +69,7 @@ DBusHandlerResult bus_automount_message_handler(Unit *u, DBusConnection *c, DBus
{ NULL, }
};
+ SELINUX_UNIT_ACCESS_CHECK(u, c, message, "status");
+
return bus_default_message_handler(c, message, INTROSPECTION, INTERFACES_LIST, bps);
}