/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_bit(roles, rnode, bit) { in user_to_record() 117 const char **roles = NULL; in sepol_user_modify() local 138 if (sepol_user_get_roles(handle, user, &roles, &num_roles) < 0) in sepol_user_modify() 165 roldatum = hashtab_search(policydb->p_roles.table, roles[i]); in sepol_user_modify() 168 roles[i], cname); in sepol_user_modify() 176 (&(usrdatum->roles.roles), bit, 1)) in sepol_user_modify() 267 if (role_set_expand(&usrdatum->roles, &usrdatum->cache, in sepol_user_modify() 274 free(roles); in sepol_user_modify() [all …]
|
D | genusers.c | 91 ebitmap_destroy(&usrdatum->roles.roles); 92 ebitmap_init(&usrdatum->roles.roles); 175 (&usrdatum->roles.roles, bit, 1)) {
|
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 | 764 if (map_ebitmap(&role->roles, &mapped_roles, state->rolemap)) in role_fix_callback() 766 if (ebitmap_union(&new_role->roles, &mapped_roles)) { in role_fix_callback() 773 ebitmap_for_each_bit(&role->roles, rnode, i) { in role_fix_callback() 1052 if (role_set_expand(&user->roles, &tmp_union, state->out, state->base, state->rolemap)) { in user_copy_callback() 1058 if (ebitmap_union(&new_user->roles.roles, &tmp_union)) { in user_copy_callback() 1225 ebitmap_t roles, new_roles; in copy_role_allows() local 1233 ebitmap_init(&roles); in copy_role_allows() 1236 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) { in copy_role_allows() 1246 ebitmap_for_each_bit(&roles, snode, i) { in copy_role_allows() 1280 ebitmap_destroy(&roles); in copy_role_allows() [all …]
|
D | link.c | 1014 static int role_set_or_convert(role_set_t * roles, role_set_t * dst, in role_set_or_convert() argument 1022 ebitmap_for_each_bit(&roles->roles, rnode, i) { in role_set_or_convert() 1031 if (ebitmap_union(&dst->roles, &tmp)) { in role_set_or_convert() 1034 dst->flags |= roles->flags; in role_set_or_convert() 1137 ebitmap_for_each_bit(&role->roles, rnode, i) { in role_fix_callback() 1146 if (ebitmap_union(&dest_role->roles, &e_tmp)) { in role_fix_callback() 1236 if (role_set_or_convert(&user->roles, &new_user->roles, mod, state)) { in user_fix_callback() 1376 (&cur->roles, &new_rule->roles, module, state) in copy_role_trans_list() 1432 (&cur->roles, &new_rule->roles, module, state) in copy_role_allow_list() 2433 ebitmap_for_each_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 38 roles = malloc(size); in semanage_user_roles() 39 if (roles) { in semanage_user_roles() 40 strcpy(roles,roles_arr[0]); in semanage_user_roles() 42 strcat(roles,","); in semanage_user_roles() 43 strcat(roles,roles_arr[i]); in semanage_user_roles() 51 return roles; in semanage_user_roles() 61 char *roles = NULL; in semanage_seuser_audit() local 74 roles = semanage_user_roles(handle, sename); in semanage_seuser_audit() 87 if (roles && (!proles || strcmp(proles, roles) != 0)) { 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/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() 348 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 | 176 self.mox.StubOutWithMock(self.BACKUP_DRONE.roles, 'get') 177 self.BACKUP_DRONE.roles.get( 210 self.mox.StubOutWithMock(self.BACKUP_DRONE.roles, 'filter') 211 self.BACKUP_DRONE.roles.filter( 230 self.mox.StubOutWithMock(self.PRIMARY_DRONE.roles, 'filter') 234 self.PRIMARY_DRONE.roles.filter( 271 self.mox.StubOutWithMock(self.BACKUP_SCHEDULER.roles, 'filter') 272 self.BACKUP_SCHEDULER.roles.filter( 344 self.mox.StubOutWithMock(self.PRIMARY_DRONE.roles, 'get') 345 self.PRIMARY_DRONE.roles.get( [all …]
|
D | server_manager.py | 105 server.roles.get(role=role).delete() 139 if (not server.roles.all() and 149 unique_roles = server.roles.filter( 228 for role in server.roles.all():
|
D | server_manager_utils.py | 152 roles = ','.join(server.get_role_names()) 156 'roles': roles, 209 roles = [role for role, _ in server_models.ServerRole.ROLE.choices()]
|
D | server_manager_actions.py | 109 def try_execute(server, roles, enable, post_change, argument 147 for role in roles:
|
/external/selinux/gui/ |
D | usersPage.py | 118 roles = self.selinuxRolesEntry.get_text() 121 (rc, out) = getstatusoutput("semanage user -a -R '%s' -r %s %s" % (roles, range, user)) 129 self.store.set_value(iter, 2, roles) 134 roles = self.selinuxRolesEntry.get_text() 137 (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 | 48 ebitmap_for_each_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 136 global roles 145 roles = None 223 'roles': map(str, x.roles), 829 global roles 830 if roles: 831 return roles 834 roles = [str(x) for x in q.results() if str(x) != "object_r"] 835 return roles 1150 global roles [all …]
|
/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/cil/src/ |
D | cil_post.c | 715 attr->roles = cil_malloc(sizeof(*attr->roles)); in __evaluate_role_expression() 716 rc = __cil_expr_list_to_bitmap(attr->expr_list, attr->roles, db->num_roles, db); in __evaluate_role_expression() 719 ebitmap_destroy(attr->roles); in __evaluate_role_expression() 720 free(attr->roles); in __evaluate_role_expression() 721 attr->roles = NULL; in __evaluate_role_expression() 735 if (attr->roles == NULL) { in __cil_role_to_bitmap() 739 ebitmap_union(bitmap, attr->roles); in __cil_role_to_bitmap() 1258 if (attr->roles == NULL) { in __cil_post_db_attr_helper() 1359 ebitmap_for_each_bit(attr->roles, rnode, i) { in __cil_post_db_roletype_helper() 1362 if (!ebitmap_get_bit(attr->roles, i)) { in __cil_post_db_roletype_helper() [all …]
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 92 ebitmap_t roles; member 143 ebitmap_t roles; /* roles with this attribute */ member 202 role_set_t roles; /* set of authorized roles for user */ member 298 role_set_t roles; /* current role */ member 306 role_set_t roles; /* current role */ member
|
/external/skia/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
|