Home
last modified time | relevance | path

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

/external/selinux/libsepol/src/
Dexpand.c732 role_datum_t *role, *new_role, *regular_role; in role_fix_callback() local
758 new_role = in role_fix_callback()
761 assert(new_role != NULL && new_role->flavor == ROLE_ATTRIB); in role_fix_callback()
766 if (ebitmap_union(&new_role->roles, &mapped_roles)) { in role_fix_callback()
785 &new_role->types.types)) { in role_fix_callback()
801 role_datum_t *new_role; in role_copy_callback() local
823 new_role = in role_copy_callback()
825 if (!new_role) { in role_copy_callback()
826 new_role = (role_datum_t *) malloc(sizeof(role_datum_t)); in role_copy_callback()
827 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.c528 buf[2] = cpu_to_le32(tr->new_role); in role_trans_write()
558 buf[1] = cpu_to_le32(ra->new_role); in role_allow_write()
1714 int new_role = p->policyvers >= MOD_POLICYDB_VERSION_ROLETRANS; in role_trans_rule_write() local
1717 if (new_role || only_process(&tr->classes)) in role_trans_rule_write()
1725 if (!new_role && !only_process(&tr->classes)) { in role_trans_rule_write()
1737 if (new_role) in role_trans_rule_write()
1740 buf[0] = cpu_to_le32(tr->new_role); in role_trans_rule_write()
Dservices.c1000 tcontext->role == ra->new_role) in context_struct_compute_av()
1450 newcontext.role = roletr->new_role; in sepol_compute_sid()
Dpolicydb.c2490 tr->new_role = le32_to_cpu(buf[2]); in role_trans_read()
2529 ra->new_role = le32_to_cpu(buf[1]); in role_allow_read()
3430 tr->new_role = le32_to_cpu(buf[0]); in role_trans_rule_read()
Dkernel_to_cil.c2252 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_transition_rules_to_cil()
2291 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_allow_rules_to_cil()
Dkernel_to_conf.c2175 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_transition_rules_to_conf()
2214 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_allow_rules_to_conf()
Dmodule_to_cil.c1447 pdb->p_role_val_to_name[rule->new_role - 1]); in role_trans_to_cil()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h150 uint32_t new_role; /* new role */ member
156 uint32_t new_role; /* new role */ member
301 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.c469 display_id(p, fp, SYM_ROLES, tr->new_role - 1, ""); in display_role_trans()
/external/selinux/libsepol/cil/src/
Dcil_binary.c2339 uint32_t *new_role = NULL; in cil_roletrans_to_policydb() local
2378 new->new_role = sepol_result->s.value; in cil_roletrans_to_policydb()
2380 rc = hashtab_insert(role_trans_table, (hashtab_key_t)new, &(new->new_role)); in cil_roletrans_to_policydb()
2384 new_role = hashtab_search(role_trans_table, (hashtab_key_t)new); in cil_roletrans_to_policydb()
2385 if (new->new_role != *new_role) { in cil_roletrans_to_policydb()
2448 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.c3239 tr->new_role = role->s.value; in define_role_trans()
3255 rule->new_role = role->s.value; in define_role_trans()