summaryrefslogtreecommitdiffstats
path: root/bus/policy.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2005-02-18 18:18:32 +0000
committerRyan Lortie <desrt@desrt.ca>2005-02-18 18:18:32 +0000
commitb0e260cd15f5d95f501eba254a803f180d547174 (patch)
treed384badec538ef759dad0a867b4b3dd72f9d4b9e /bus/policy.c
parent74ae666f06076e8ebd9bc8267e3b824ef042b0ab (diff)
This commit was manufactured by cvs2svn to create tag 'dbus-0.23.2'.dbus-0.23.2
Diffstat (limited to 'bus/policy.c')
-rw-r--r--bus/policy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bus/policy.c b/bus/policy.c
index 7759dfad..c0244bdc 100644
--- a/bus/policy.c
+++ b/bus/policy.c
@@ -453,8 +453,9 @@ bus_policy_allow_user (BusPolicy *policy,
uid);
return FALSE;
}
-
- allowed = FALSE;
+
+ /* Default to "user owning bus" or root can connect */
+ allowed = uid == _dbus_getuid ();
allowed = list_allows_user (allowed,
&policy->default_rules,