Home
last modified time | relevance | path

Searched refs:group_ids (Results 1 – 10 of 10) sorted by relevance

/external/dbus/dbus/
Ddbus-userdb-util.c356 dbus_gid_t **group_ids, in _dbus_groups_from_uid() argument
361 *group_ids = NULL; in _dbus_groups_from_uid()
384 *group_ids = dbus_new (dbus_gid_t, info->n_group_ids); in _dbus_groups_from_uid()
385 if (*group_ids == NULL) in _dbus_groups_from_uid()
393 memcpy (*group_ids, info->group_ids, info->n_group_ids * sizeof (dbus_gid_t)); in _dbus_groups_from_uid()
415 unsigned long *group_ids; in _dbus_userdb_test() local
427 if (!_dbus_groups_from_uid (uid, &group_ids, &n_group_ids)) in _dbus_userdb_test()
435 printf(" %ld", group_ids[i]); in _dbus_userdb_test()
439 dbus_free (group_ids); in _dbus_userdb_test()
Ddbus-sysdeps-unix.h96 dbus_gid_t *group_ids; /**< Groups IDs, *including* above primary group */ member
Ddbus-userdb.h103 dbus_gid_t **group_ids,
Ddbus-sysdeps-unix.c1955 info->group_ids = NULL; in fill_user_info()
2144 info->group_ids = dbus_new (dbus_gid_t, buf_count); in fill_user_info()
2145 if (info->group_ids == NULL) in fill_user_info()
2153 info->group_ids[i] = buf[i]; in fill_user_info()
2162 info->group_ids = dbus_new (dbus_gid_t, 1); in fill_user_info()
2163 if (info->group_ids == NULL) in fill_user_info()
2171 (info->group_ids)[0] = info->primary_gid; in fill_user_info()
Ddbus-sysdeps-util-unix.c918 dbus_gid_t **group_ids, in _dbus_unix_groups_from_uid() argument
921 return _dbus_groups_from_uid (uid, group_ids, n_group_ids); in _dbus_unix_groups_from_uid()
Ddbus-sysdeps.h200 dbus_gid_t **group_ids,
Ddbus-userdb.c78 dbus_free (info->group_ids); in _dbus_user_info_free()
Ddbus-sysdeps-util-win.c855 dbus_gid_t **group_ids, in _dbus_unix_groups_from_uid() argument
/external/dbus/bus/
Dpolicy.c380 const unsigned long *group_ids, in list_allows_user() argument
418 if (rule->d.group.gid == group_ids[i]) in list_allows_user()
441 unsigned long *group_ids; in bus_policy_allow_unix_user() local
445 if (!_dbus_unix_groups_from_uid (uid, &group_ids, &n_group_ids)) in bus_policy_allow_unix_user()
458 group_ids, n_group_ids); in bus_policy_allow_unix_user()
463 group_ids, n_group_ids); in bus_policy_allow_unix_user()
465 dbus_free (group_ids); in bus_policy_allow_unix_user()
Dconnection.c890 unsigned long *group_ids; in bus_connection_is_in_unix_group() local
893 if (!bus_connection_get_unix_groups (connection, &group_ids, &n_group_ids, in bus_connection_is_in_unix_group()
900 if (group_ids[i] == gid) in bus_connection_is_in_unix_group()
902 dbus_free (group_ids); in bus_connection_is_in_unix_group()
908 dbus_free (group_ids); in bus_connection_is_in_unix_group()