/external/selinux/libsepol/src/ |
D | user_record.c | 19 char **roles; member 192 roles_realloc = realloc(user->roles, in sepol_user_add_role() 198 user->roles = roles_realloc; in sepol_user_add_role() 199 user->roles[user->num_roles - 1] = role_cp; in sepol_user_add_role() 218 if (!strcmp(user->roles[i], role)) in hidden_def() 249 free(user->roles[i]); in hidden_def() 250 free(user->roles); in hidden_def() 251 user->roles = tmp_roles; in hidden_def() 282 tmp_roles[i] = user->roles[i]; in sepol_user_get_roles() 302 if (!strcmp(user->roles[i], role)) { in hidden_def() [all …]
|
D | users.c | 22 ebitmap_t *roles; in user_to_record() local 31 roles = &(usrdatum->roles.roles); in user_to_record() 40 ebitmap_for_each_positive_bit(roles, rnode, bit) { in user_to_record() 115 const char **roles = NULL; in sepol_user_modify() local 136 if (sepol_user_get_roles(handle, user, &roles, &num_roles) < 0) in sepol_user_modify() 163 roldatum = hashtab_search(policydb->p_roles.table, roles[i]); in sepol_user_modify() 166 roles[i], cname); in sepol_user_modify() 172 if (ebitmap_set_bit(&(usrdatum->roles.roles), bit, 1)) in sepol_user_modify() 262 if (role_set_expand(&usrdatum->roles, &usrdatum->cache, in sepol_user_modify() 269 free(roles); in sepol_user_modify() [all …]
|
D | roles.c | 23 sepol_policydb_t * p, char ***roles, unsigned int *nroles) in sepol_role_list() argument 41 *roles = tmp_roles; in sepol_role_list()
|
D | expand.c | 763 if (map_ebitmap(&role->roles, &mapped_roles, state->rolemap)) in role_fix_callback() 765 if (ebitmap_union(&new_role->roles, &mapped_roles)) { in role_fix_callback() 772 ebitmap_for_each_positive_bit(&role->roles, rnode, i) { in role_fix_callback() 1049 if (role_set_expand(&user->roles, &tmp_union, state->out, state->base, state->rolemap)) { in user_copy_callback() 1055 if (ebitmap_union(&new_user->roles.roles, &tmp_union)) { in user_copy_callback() 1222 ebitmap_t roles, new_roles; in copy_role_allows() local 1230 ebitmap_init(&roles); in copy_role_allows() 1233 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) { in copy_role_allows() 1243 ebitmap_for_each_positive_bit(&roles, snode, i) { in copy_role_allows() 1273 ebitmap_destroy(&roles); in copy_role_allows() [all …]
|
D | link.c | 1010 static int role_set_or_convert(role_set_t * roles, role_set_t * dst, in role_set_or_convert() argument 1018 ebitmap_for_each_positive_bit(&roles->roles, rnode, i) { in role_set_or_convert() 1025 if (ebitmap_union(&dst->roles, &tmp)) { in role_set_or_convert() 1028 dst->flags |= roles->flags; in role_set_or_convert() 1129 ebitmap_for_each_positive_bit(&role->roles, rnode, i) { in role_fix_callback() 1136 if (ebitmap_union(&dest_role->roles, &e_tmp)) { in role_fix_callback() 1224 if (role_set_or_convert(&user->roles, &new_user->roles, mod, state)) { in user_fix_callback() 1373 (&cur->roles, &new_rule->roles, module, state) in copy_role_trans_list() 1427 (&cur->roles, &new_rule->roles, module, state) in copy_role_allow_list() 2416 ebitmap_for_each_positive_bit(&role->roles, rnode, i) { in expand_role_attributes() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue72/ |
D | CollectionTest.java | 71 private Collection<Integer> roles; field in CollectionTest.CollectionSet 74 roles = new HashSet<Integer>(); in CollectionSet() 75 roles.add(11); in CollectionSet() 76 roles.add(13); in CollectionSet() 80 return roles; in getRoles() 83 public void setRoles(Collection<Integer> roles) { in setRoles() argument 84 this.roles = roles; in setRoles()
|
/external/selinux/libsemanage/src/ |
D | seusers_local.c | 22 char *roles = NULL; in semanage_user_roles() local 39 roles = strdup(""); in semanage_user_roles() 41 roles = malloc(size); in semanage_user_roles() 42 if (roles) { in semanage_user_roles() 43 strcpy(roles,roles_arr[0]); in semanage_user_roles() 45 strcat(roles,","); in semanage_user_roles() 46 strcat(roles,roles_arr[i]); in semanage_user_roles() 55 return roles; in semanage_user_roles() 65 char *roles = NULL; in semanage_seuser_audit() local 84 roles = semanage_user_roles(handle, sename); in semanage_seuser_audit() [all …]
|
D | users_base_file.c | 27 const char **roles = NULL; in user_base_print() local 37 if (semanage_user_base_get_roles(handle, user, &roles, &nroles) < 0) in user_base_print() 41 if (fprintf(str, "%s ", roles[i]) < 0) in user_base_print() 56 free(roles); in user_base_print() 60 free(roles); in user_base_print()
|
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/ |
D | DefaultTrackNameProvider.java | 112 String roles = ""; in buildRoleString() local 114 roles = resources.getString(R.string.exo_track_role_alternate); in buildRoleString() 117 roles = joinWithSeparator(roles, resources.getString(R.string.exo_track_role_supplementary)); in buildRoleString() 120 roles = joinWithSeparator(roles, resources.getString(R.string.exo_track_role_commentary)); in buildRoleString() 123 roles = in buildRoleString() 124 joinWithSeparator(roles, resources.getString(R.string.exo_track_role_closed_captions)); in buildRoleString() 126 return roles; in buildRoleString()
|
/external/u-boot/drivers/usb/cdns3/ |
D | core.c | 42 WARN_ON(!cdns->roles[cdns->role]); in cdns3_get_current_role_driver() 43 return cdns->roles[cdns->role]; in cdns3_get_current_role_driver() 57 if (!cdns->roles[role]) in cdns3_role_start() 60 if (cdns->roles[role]->state == CDNS3_ROLE_STATE_ACTIVE) in cdns3_role_start() 64 ret = cdns->roles[role]->start(cdns); in cdns3_role_start() 66 cdns->roles[role]->state = CDNS3_ROLE_STATE_ACTIVE; in cdns3_role_start() 79 if (cdns->roles[role]->state == CDNS3_ROLE_STATE_INACTIVE) in cdns3_role_stop() 83 cdns->roles[role]->stop(cdns); in cdns3_role_stop() 84 cdns->roles[role]->state = CDNS3_ROLE_STATE_INACTIVE; in cdns3_role_stop() 273 cdns->roles[USB_ROLE_NONE] = rdrv; in cdns3_idle_init()
|
/external/selinux/checkpolicy/test/ |
D | dismod.c | 179 int display_mod_role_set(role_set_t * roles, policydb_t * p, FILE * fp) in display_mod_role_set() argument 183 if (roles->flags & ROLE_STAR) { in display_mod_role_set() 186 } else if (roles->flags & ROLE_COMP) { in display_mod_role_set() 190 for (i = ebitmap_startbit(&roles->roles); in display_mod_role_set() 191 i < ebitmap_length(&roles->roles); i++) { in display_mod_role_set() 192 if (!ebitmap_get_bit(&roles->roles, i)) in display_mod_role_set() 201 for (i = ebitmap_startbit(&roles->roles); in display_mod_role_set() 202 i < ebitmap_length(&roles->roles); i++) { in display_mod_role_set() 203 if (ebitmap_get_bit(&roles->roles, i)) in display_mod_role_set() 373 bitmap = &(p->user_val_to_struct[i]->roles.roles); in display_users() [all …]
|
/external/webrtc/webrtc/p2p/base/ |
D | transportdescription.cc | 20 const char* const roles[] = { in StringToConnectionRole() local 27 for (size_t i = 0; i < arraysize(roles); ++i) { in StringToConnectionRole() 28 if (_stricmp(roles[i], role_str.c_str()) == 0) { in StringToConnectionRole()
|
/external/autotest/site_utils/ |
D | server_manager_unittest.py | 177 self.mox.StubOutWithMock(self.REPAIR_REQUIRED_DRONE.roles, 'get') 178 self.REPAIR_REQUIRED_DRONE.roles.get( 213 self.mox.StubOutWithMock(self.REPAIR_REQUIRED_DRONE.roles, 'filter') 214 self.REPAIR_REQUIRED_DRONE.roles.filter( 235 self.mox.StubOutWithMock(self.PRIMARY_DRONE.roles, 'filter') 239 self.PRIMARY_DRONE.roles.filter( 277 self.mox.StubOutWithMock(self.REPAIR_REQUIRED_SCHEDULER.roles, 'filter') 278 self.REPAIR_REQUIRED_SCHEDULER.roles.filter( 351 self.mox.StubOutWithMock(self.PRIMARY_DRONE.roles, 'get') 352 self.PRIMARY_DRONE.roles.get( [all …]
|
D | server_manager.py | 104 server.roles.get(role=role).delete() 133 if (not server.roles.all() and 143 unique_roles = server.roles.filter( 220 for role in server.roles.all():
|
D | server_manager_actions.py | 102 def try_execute(server, roles, enable, post_change, argument 141 for role in roles:
|
/external/selinux/gui/ |
D | usersPage.py | 110 roles = self.selinuxRolesEntry.get_text() 113 (rc, out) = getstatusoutput("semanage user -a -R '%s' -r %s %s" % (roles, range, user)) 121 self.store.set_value(iter, 2, roles) 126 roles = self.selinuxRolesEntry.get_text() 129 (rc, out) = getstatusoutput("semanage user -m -R '%s' -r %s %s" % (roles, range, user))
|
/external/autotest/frontend/server/ |
D | models.py | 49 roles = ','.join([r.role for r in self.roles.all()]) 54 'roles': roles, 66 return [r.role for r in self.roles.all()]
|
/external/libxml2/os400/libxmlrpg/ |
D | xlink.rpgle | 94 * @roles: pointer to the array of locator roles 96 * @from: pointer to the array of source roles found on the arcs 97 * @to: pointer to the array of target roles found on the arcs 115 * @roles: pointer to the array of locator roles
|
/external/selinux/libsepol/tests/ |
D | test-expander-users.c | 49 ebitmap_for_each_positive_bit(&user->roles.roles, tnode, i) { in check_user_roles()
|
/external/libxml2/include/libxml/ |
D | xlink.h | 111 const xlinkRole *roles, 139 const xlinkRole *roles,
|
/external/selinux/python/sepolicy/sepolicy/ |
D | __init__.py | 107 roles = None variable 156 global roles 165 roles = None 262 'roles': list(map(str, x.roles)), 267 'roles': list(map(str, x.roles)), 915 global roles 916 if roles: 917 return roles 920 roles = [str(x) for x in q.results() if str(x) != "object_r"] 921 return roles [all …]
|
/external/autotest/client/common_lib/ |
D | ui_utils.py | 186 roles = self.list_screen_items(attr='role') 188 if len(names) != len(roles): 191 for name, role in zip(names, roles):
|
/external/selinux/secilc/docs/ |
D | cil_role_statements.md | 34 This example declares two roles: `object_r` in the global namespace and `unconfined.role`: 114 This example will declare a role attribute `roles.role_holder` that will have an empty set: 116 (block roles 164 This example will declare three roles and two role attributes, then associate all the roles to them… 166 (block roles 276 Defines a hierarchical relationship between roles where the child role cannot have more privileges …
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 95 ebitmap_t roles; member 147 ebitmap_t roles; /* roles with this attribute */ member 206 role_set_t roles; /* set of authorized roles for user */ member 302 role_set_t roles; /* current role */ member 310 role_set_t roles; /* current role */ member
|
/external/skqp/site/ |
D | roles.md | 5 roles. Anyone can view the code, use the Skia library, file bugs, and submit 6 patches. This page describes in detail the kinds of roles that interested
|