summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2017-06-23 16:45:13 +0100
committerSimon McVittie <smcv@collabora.com>2017-12-11 16:13:43 +0000
commit81c4983c3df1b41c478eff523d5e21232d62e831 (patch)
tree94fbbc37bc06bb21a37fa51ac3c9d74a8311b6ad
parent230c7bb68679c101ef1314214f24d6b06895b4f0 (diff)
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 <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101354
-rw-r--r--bus/driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bus/driver.c b/bus/driver.c
index 3e42fabc..ea6724d3 100644
--- a/bus/driver.c
+++ b/bus/driver.c
@@ -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 },