From 2c30ce4c749e059401ac7a9de5dd61ec3ed287d5 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 23 Jun 2017 16:45:13 +0100 Subject: [PATCH 49/49] 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 --- bus/driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bus/driver.c b/bus/driver.c index 41e96c1e..b13317e8 100644 --- a/bus/driver.c +++ b/bus/driver.c @@ -2573,13 +2573,13 @@ static const MessageHandler introspectable_message_handlers[] = { static const MessageHandler containers_message_handlers[] = { { "AddContainerServer", "ssa{sv}a{sv}", "oays", bus_containers_handle_add_container_server, - METHOD_FLAG_PRIVILEGED }, + METHOD_FLAG_NO_CONTAINERS }, { "StopContainerInstance", "o", "", bus_containers_handle_stop_container_instance, - METHOD_FLAG_PRIVILEGED }, + METHOD_FLAG_NO_CONTAINERS }, { "StopContainerListening", "o", "", bus_containers_handle_stop_container_listening, - METHOD_FLAG_PRIVILEGED }, + METHOD_FLAG_NO_CONTAINERS }, { "GetConnectionContainerInstance", "s", "ossa{sv}", bus_containers_handle_get_connection_container_instance, METHOD_FLAG_NONE }, -- 2.11.0