summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2010-05-05 12:36:10 -0400
committerDavid Zeuthen <davidz@redhat.com>2010-05-05 12:36:10 -0400
commit5ac2a892e8be377d91d9ed9294a7781492860bf2 (patch)
tree5b850b01c5a7f2c42253b138eb76755058fbe015
parent1681b4266d83ee1af726a88148e54d0e889b1600 (diff)
Bump priority of ANONYMOUS authentication method
We want to try EXTERNAL before ANONYMOUS (to get credentials, if available) but ANONYMOUS before DBUS_COOKIE_SHA1 (to avoid IO to ~/.dbus-keyrings).
-rw-r--r--gdbus/gdbusauthmechanismanon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdbus/gdbusauthmechanismanon.c b/gdbus/gdbusauthmechanismanon.c
index 2038632..2106bdb 100644
--- a/gdbus/gdbusauthmechanismanon.c
+++ b/gdbus/gdbusauthmechanismanon.c
@@ -127,7 +127,8 @@ _g_dbus_auth_mechanism_anon_init (GDBusAuthMechanismAnon *mechanism)
static gint
mechanism_get_priority (void)
{
- return 0;
+ /* We prefer ANONYMOUS to most other mechanism (such as DBUS_COOKIE_SHA1) but not to EXTERNAL */
+ return 50;
}