From 8045a09d25316ec7227dc65a577a6897da667879 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 23 Jun 2017 16:45:13 +0100 Subject: [PATCH] bus/driver: Allow unprivileged connections to create app-containers This lets ordinary users create a limited number of app-containers on the system bus. Signed-off-by: Simon McVittie https://bugs.freedesktop.org/show_bug.cgi?id=101354 --- bus/driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bus/driver.c b/bus/driver.c index 12a95c87..11d541d9 100644 --- a/bus/driver.c +++ b/bus/driver.c @@ -2572,11 +2572,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 }, -- 2.13.3