summaryrefslogtreecommitdiff
path: root/src/core/dbus-swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/dbus-swap.c')
-rw-r--r--src/core/dbus-swap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/dbus-swap.c b/src/core/dbus-swap.c
index cad6ec1aaa..67ea0f24fe 100644
--- a/src/core/dbus-swap.c
+++ b/src/core/dbus-swap.c
@@ -27,6 +27,7 @@
#include "dbus-execute.h"
#include "dbus-kill.h"
#include "dbus-common.h"
+#include "selinux-access.h"
#define BUS_SWAP_INTERFACE \
" <interface name=\"org.freedesktop.systemd1.Swap\">\n" \
@@ -108,5 +109,7 @@ DBusHandlerResult bus_swap_message_handler(Unit *u, DBusConnection *c, DBusMessa
{ NULL, }
};
+ SELINUX_UNIT_ACCESS_CHECK(u, c, message, "status");
+
return bus_default_message_handler(c, message, INTROSPECTION, INTERFACES_LIST, bps);
}