Home
last modified time | relevance | path

Searched refs:roles (Results 1 – 25 of 203) sorted by relevance

123456789

/external/selinux/libsepol/src/
Duser_record.c19 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 …]
Dusers.c22 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 …]
Dgenusers.c91 ebitmap_destroy(&usrdatum->roles.roles);
92 ebitmap_init(&usrdatum->roles.roles);
175 (&usrdatum->roles.roles, bit, 1)) {
Dexpand.c765 if (map_ebitmap(&role->roles, &mapped_roles, state->rolemap)) in role_fix_callback()
767 if (ebitmap_union(&new_role->roles, &mapped_roles)) { in role_fix_callback()
774 ebitmap_for_each_bit(&role->roles, rnode, i) { in role_fix_callback()
1053 if (role_set_expand(&user->roles, &tmp_union, state->out, state->base, state->rolemap)) { in user_copy_callback()
1059 if (ebitmap_union(&new_user->roles.roles, &tmp_union)) { in user_copy_callback()
1226 ebitmap_t roles, new_roles; in copy_role_allows() local
1234 ebitmap_init(&roles); in copy_role_allows()
1237 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) { in copy_role_allows()
1247 ebitmap_for_each_bit(&roles, snode, i) { in copy_role_allows()
1281 ebitmap_destroy(&roles); in copy_role_allows()
[all …]
Droles.c23 sepol_policydb_t * p, char ***roles, unsigned int *nroles) in sepol_role_list() argument
41 *roles = tmp_roles; in sepol_role_list()
Dlink.c1014 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()
1385 (&cur->roles, &new_rule->roles, module, state) in copy_role_trans_list()
1441 (&cur->roles, &new_rule->roles, module, state) in copy_role_allow_list()
2442 ebitmap_for_each_bit(&role->roles, rnode, i) { in expand_role_attributes()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue72/
DCollectionTest.java71 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/
Dseusers_local.c22 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 …]
Dusers_base_file.c27 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/
Ddismod.c179 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/autotest/site_utils/
Dserver_manager_unittest.py177 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 …]
Dserver_manager.py104 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():
Dserver_manager_utils.py145 roles = ','.join(server.get_role_names())
149 'roles': roles,
201 roles = [role for role, _ in server_models.ServerRole.ROLE.choices()]
Dserver_manager_actions.py102 def try_execute(server, roles, enable, post_change, argument
141 for role in roles:
/external/webrtc/webrtc/p2p/base/
Dtransportdescription.cc20 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/selinux/gui/
DusersPage.py110 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/
Dmodels.py49 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/
Dxlink.rpgle94 * @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/python/sepolicy/sepolicy/
D__init__.py109 roles = None variable
140 global roles
149 roles = None
235 'roles': list(map(str, x.roles)),
240 'roles': list(map(str, x.roles)),
869 global roles
870 if roles:
871 return roles
874 roles = [str(x) for x in q.results() if str(x) != "object_r"]
875 return roles
[all …]
Dgenerate.py390 self.roles = []
401 def set_admin_roles(self, roles): argument
402 self.roles = roles
1022 roles = ""
1023 if len(self.roles) > 0:
1026 for role in self.roles:
1133 roles = ""
1134 for role in self.roles:
1135 roles += " %s_r" % role
1136 if roles != "":
[all …]
/external/selinux/libsepol/tests/
Dtest-expander-users.c48 ebitmap_for_each_bit(&user->roles.roles, tnode, i) { in check_user_roles()
/external/selinux/secilc/docs/
Dcil_role_statements.md34 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/libxml2/include/libxml/
Dxlink.h111 const xlinkRole *roles,
139 const xlinkRole *roles,
/external/selinux/libsepol/cil/src/
Dcil_post.c964 attr->roles = cil_malloc(sizeof(*attr->roles)); in __evaluate_role_expression()
965 rc = __cil_expr_list_to_bitmap(attr->expr_list, attr->roles, db->num_roles, db); in __evaluate_role_expression()
968 ebitmap_destroy(attr->roles); in __evaluate_role_expression()
969 free(attr->roles); in __evaluate_role_expression()
970 attr->roles = NULL; in __evaluate_role_expression()
984 if (attr->roles == NULL) { in __cil_role_to_bitmap()
988 ebitmap_union(bitmap, attr->roles); in __cil_role_to_bitmap()
1556 if (attr->roles == NULL) { in __cil_post_db_attr_helper()
1657 ebitmap_for_each_bit(attr->roles, rnode, i) { in __cil_post_db_roletype_helper()
1660 if (!ebitmap_get_bit(attr->roles, i)) { in __cil_post_db_roletype_helper()
[all …]
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h95 ebitmap_t roles; member
146 ebitmap_t roles; /* roles with this attribute */ member
205 role_set_t roles; /* set of authorized roles for user */ member
301 role_set_t roles; /* current role */ member
309 role_set_t roles; /* current role */ member

123456789