]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
bus/driver: Allow unprivileged connections to create app-containers
authorSimon McVittie <smcv@collabora.com>
Fri, 23 Jun 2017 15:45:13 +0000 (16:45 +0100)
committerSimon McVittie <smcv@collabora.com>
Tue, 12 Dec 2017 16:22:35 +0000 (16:22 +0000)
This lets ordinary users create a limited number of app-containers
on the system bus.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101354

bus/driver.c

index 3e42fabc340363dfd4d21e43b5bdc8c2f4f2a9c5..ea6724d3de824e69942a8ea23eb6be06c731900a 100644 (file)
@@ -2571,11 +2571,11 @@ static const MessageHandler introspectable_message_handlers[] = {
 #ifdef DBUS_ENABLE_CONTAINERS
 static const MessageHandler containers_message_handlers[] = {
   { "AddServer", "ssa{sv}a{sv}", "oays", bus_containers_handle_add_server,
-    METHOD_FLAG_PRIVILEGED },
+    METHOD_FLAG_NO_CONTAINERS },
   { "StopInstance", "o", "", bus_containers_handle_stop_instance,
-    METHOD_FLAG_PRIVILEGED },
+    METHOD_FLAG_NO_CONTAINERS },
   { "StopListening", "o", "", bus_containers_handle_stop_listening,
-    METHOD_FLAG_PRIVILEGED },
+    METHOD_FLAG_NO_CONTAINERS },
   { "GetConnectionInstance", "s", "ossa{sv}",
     bus_containers_handle_get_connection_instance,
     METHOD_FLAG_NONE },