X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fdbus-mount.c;h=0fcceb500d068565835adda04fa381a341ee5c5d;hb=b872e9a05939bc3e0ac95a042592506a7488dd6f;hp=26b04abe5d144649b123b37a8fe4e3e5159ec619;hpb=6b1dc2bd3cdb3bd932b0692be636ddd2879edb92;p=elogind.git diff --git a/src/core/dbus-mount.c b/src/core/dbus-mount.c index 26b04abe5..0fcceb500 100644 --- a/src/core/dbus-mount.c +++ b/src/core/dbus-mount.c @@ -23,8 +23,10 @@ #include "dbus-unit.h" #include "dbus-mount.h" +#include "dbus-kill.h" #include "dbus-execute.h" #include "dbus-common.h" +#include "selinux-access.h" #define BUS_MOUNT_INTERFACE \ " \n" \ @@ -37,6 +39,8 @@ BUS_EXEC_COMMAND_INTERFACE("ExecUnmount") \ BUS_EXEC_COMMAND_INTERFACE("ExecRemount") \ BUS_EXEC_CONTEXT_INTERFACE \ + BUS_KILL_CONTEXT_INTERFACE \ + BUS_UNIT_CGROUP_INTERFACE \ " \n" \ " \n" \ " \n" \ @@ -155,8 +159,12 @@ DBusHandlerResult bus_mount_message_handler(Unit *u, DBusConnection *c, DBusMess { "org.freedesktop.systemd1.Unit", bus_unit_properties, u }, { "org.freedesktop.systemd1.Mount", bus_mount_properties, m }, { "org.freedesktop.systemd1.Mount", bus_exec_context_properties, &m->exec_context }, + { "org.freedesktop.systemd1.Mount", bus_kill_context_properties, &m->kill_context }, + { "org.freedesktop.systemd1.Mount", bus_unit_cgroup_properties, u }, { NULL, } }; + SELINUX_UNIT_ACCESS_CHECK(u, c, message, "status"); + return bus_default_message_handler(c, message, INTROSPECTION, INTERFACES_LIST, bps ); }