diff options
author | Tim Dijkstra <tim@famdijkstra.org> | 2006-12-12 21:24:07 +0000 |
---|---|---|
committer | Tim Dijkstra <tim@famdijkstra.org> | 2006-12-12 21:24:07 +0000 |
commit | 145fb99b6e0351d92ffd2f85be77b426c89df59b (patch) | |
tree | 842a296b17f34ed145cdcbdfb1478ce28f0a7d2f /bus/policy.c | |
parent | 1a90c0193042bfc03d56d0f2454e46ec35667f3f (diff) |
commit.msg
Diffstat (limited to 'bus/policy.c')
-rw-r--r-- | bus/policy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bus/policy.c b/bus/policy.c index c0244bdc..7b4c5f26 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -28,6 +28,7 @@ #include <dbus/dbus-list.h> #include <dbus/dbus-hash.h> #include <dbus/dbus-internals.h> +#include <dbus/dbus-userdb.h> BusPolicyRule* bus_policy_rule_new (BusPolicyRuleType type, @@ -438,7 +439,6 @@ list_allows_user (dbus_bool_t def, dbus_bool_t bus_policy_allow_user (BusPolicy *policy, - DBusUserDatabase *user_database, unsigned long uid) { dbus_bool_t allowed; @@ -446,8 +446,7 @@ bus_policy_allow_user (BusPolicy *policy, int n_group_ids; /* On OOM or error we always reject the user */ - if (!_dbus_user_database_get_groups (user_database, - uid, &group_ids, &n_group_ids, NULL)) + if (!_dbus_groups_from_uid (uid, &group_ids, &n_group_ids)) { _dbus_verbose ("Did not get any groups for UID %lu\n", uid); |