Home
last modified time | relevance | path

Searched refs:new_role (Results 1 – 14 of 14) sorted by relevance

/external/selinux/libsepol/src/
Dexpand.c733 role_datum_t *role, *new_role, *regular_role; in role_fix_callback() local
759 new_role = in role_fix_callback()
762 assert(new_role != NULL && new_role->flavor == ROLE_ATTRIB); in role_fix_callback()
767 if (ebitmap_union(&new_role->roles, &mapped_roles)) { in role_fix_callback()
786 &new_role->types.types)) { in role_fix_callback()
802 role_datum_t *new_role; in role_copy_callback() local
824 new_role = in role_copy_callback()
826 if (!new_role) { in role_copy_callback()
827 new_role = (role_datum_t *) malloc(sizeof(role_datum_t)); in role_copy_callback()
828 if (!new_role) { in role_copy_callback()
[all …]
Dlink.c351 role_datum_t *role, *base_role, *new_role = NULL; in role_copy_callback() local
383 if ((new_role = in role_copy_callback()
384 (role_datum_t *) malloc(sizeof(*new_role))) == NULL) { in role_copy_callback()
387 role_datum_init(new_role); in role_copy_callback()
391 new_role->flavor = role->flavor; in role_copy_callback()
392 new_role->s.value = state->base->p_roles.nprim + 1; in role_copy_callback()
396 (hashtab_datum_t) new_role); in role_copy_callback()
401 base_role = new_role; in role_copy_callback()
406 if ((new_role = malloc(sizeof(*new_role))) == NULL) { in role_copy_callback()
409 role_datum_init(new_role); in role_copy_callback()
[all …]
Dwrite.c530 buf[2] = cpu_to_le32(tr->new_role); in role_trans_write()
560 buf[1] = cpu_to_le32(ra->new_role); in role_allow_write()
1778 int new_role = p->policyvers >= MOD_POLICYDB_VERSION_ROLETRANS; in role_trans_rule_write() local
1781 if (new_role || only_process(&tr->classes)) in role_trans_rule_write()
1789 if (!new_role && !only_process(&tr->classes)) { in role_trans_rule_write()
1801 if (new_role) in role_trans_rule_write()
1804 buf[0] = cpu_to_le32(tr->new_role); in role_trans_rule_write()
Dservices.c1001 tcontext->role == ra->new_role) in context_struct_compute_av()
1451 newcontext.role = roletr->new_role; in sepol_compute_sid()
Dkernel_to_conf.c2192 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_transition_rules_to_conf()
2231 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_allow_rules_to_conf()
Dkernel_to_cil.c2269 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_transition_rules_to_cil()
2308 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_allow_rules_to_cil()
Dpolicydb.c2536 tr->new_role = le32_to_cpu(buf[2]); in role_trans_read()
2575 ra->new_role = le32_to_cpu(buf[1]); in role_allow_read()
3574 tr->new_role = le32_to_cpu(buf[0]); in role_trans_rule_read()
Dmodule_to_cil.c1479 pdb->p_role_val_to_name[rule->new_role - 1]); in role_trans_to_cil()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h153 uint32_t new_role; /* new role */ member
159 uint32_t new_role; /* new role */ member
304 uint32_t new_role; /* new role */ member
/external/selinux/checkpolicy/test/
Ddispol.c328 display_id(p, fp, SYM_ROLES, rt->new_role - 1, ""); in display_role_trans()
Ddismod.c494 display_id(p, fp, SYM_ROLES, tr->new_role - 1, ""); in display_role_trans()
/external/selinux/libsepol/cil/src/
Dcil_binary.c2353 uint32_t *new_role = NULL; in cil_roletrans_to_policydb() local
2392 new->new_role = sepol_result->s.value; in cil_roletrans_to_policydb()
2394 rc = hashtab_insert(role_trans_table, (hashtab_key_t)new, &(new->new_role)); in cil_roletrans_to_policydb()
2398 new_role = hashtab_search(role_trans_table, (hashtab_key_t)new); in cil_roletrans_to_policydb()
2399 if (new->new_role != *new_role) { in cil_roletrans_to_policydb()
2462 sepol_roleallow->new_role = sepol_tgt->s.value; in cil_roleallow_to_policydb()
/external/webrtc/webrtc/p2p/base/
Dp2ptransportchannel_unittest.cc706 cricket::IceRole new_role = in OnRoleConflict() local
709 channel->SetIceRole(new_role); in OnRoleConflict()
/external/selinux/checkpolicy/
Dpolicy_define.c3250 tr->new_role = role->s.value; in define_role_trans()
3266 rule->new_role = role->s.value; in define_role_trans()