diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2005-08-29 18:46:23 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2005-08-29 18:46:23 +0000 |
commit | 690c405a4270e1e099c15a4142aa535523248e0f (patch) | |
tree | 8361c44cd348a5bc30807630db4345ac86e15058 /bus/policy.c | |
parent | 529b8f1b75d4c825afaeafef461f01b1cfedc90a (diff) |
* Release 0.36.2
* Add Havoc's patch that never got applied to HEAD (Bug #2436):
* bus/policy.c (bus_policy_allow_user): change default "user is
allowed" to be "user has same uid as the bus itself"; any
allow/deny rules will override.
* bus/session.conf.in: don't allow all users, since now by default
the user that ran the bus can connect.
Diffstat (limited to 'bus/policy.c')
-rw-r--r-- | bus/policy.c | 5 |
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, |