Home
last modified time | relevance | path

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

/external/selinux/libsepol/src/
Dexpand.c731 role_datum_t *role, *new_role, *regular_role; in role_fix_callback() local
757 new_role = in role_fix_callback()
760 assert(new_role != NULL && new_role->flavor == ROLE_ATTRIB); in role_fix_callback()
765 if (ebitmap_union(&new_role->roles, &mapped_roles)) { in role_fix_callback()
783 &new_role->types.types)) { in role_fix_callback()
798 role_datum_t *new_role; in role_copy_callback() local
820 new_role = in role_copy_callback()
822 if (!new_role) { in role_copy_callback()
823 new_role = (role_datum_t *) malloc(sizeof(role_datum_t)); in role_copy_callback()
824 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.c535 buf[2] = cpu_to_le32(tr->new_role); in role_trans_write()
565 buf[1] = cpu_to_le32(ra->new_role); in role_allow_write()
1807 int new_role = p->policyvers >= MOD_POLICYDB_VERSION_ROLETRANS; in role_trans_rule_write() local
1810 if (new_role || only_process(&tr->classes)) in role_trans_rule_write()
1818 if (!new_role && !only_process(&tr->classes)) { in role_trans_rule_write()
1830 if (new_role) in role_trans_rule_write()
1833 buf[0] = cpu_to_le32(tr->new_role); in role_trans_rule_write()
Dservices.c997 tcontext->role == ra->new_role) in context_struct_compute_av()
1447 newcontext.role = roletr->new_role; in sepol_compute_sid()
Dkernel_to_conf.c2202 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_transition_rules_to_conf()
2241 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_allow_rules_to_conf()
Dkernel_to_cil.c2267 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_transition_rules_to_cil()
2306 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_allow_rules_to_cil()
Dpolicydb.c2554 tr->new_role = le32_to_cpu(buf[2]); in role_trans_read()
2593 ra->new_role = le32_to_cpu(buf[1]); in role_allow_read()
3592 tr->new_role = le32_to_cpu(buf[0]); in role_trans_rule_read()
Dmodule_to_cil.c1464 pdb->p_role_val_to_name[rule->new_role - 1]); in role_trans_to_cil()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h154 uint32_t new_role; /* new role */ member
160 uint32_t new_role; /* new role */ member
305 uint32_t new_role; /* new role */ member
/external/selinux/checkpolicy/test/
Ddispol.c324 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.c2306 uint32_t *new_role = NULL; in cil_roletrans_to_policydb() local
2341 new->new_role = sepol_result->s.value; in cil_roletrans_to_policydb()
2343 rc = hashtab_insert(role_trans_table, (hashtab_key_t)new, &(new->new_role)); in cil_roletrans_to_policydb()
2347 new_role = hashtab_search(role_trans_table, (hashtab_key_t)new); in cil_roletrans_to_policydb()
2348 if (new->new_role != *new_role) { in cil_roletrans_to_policydb()
2407 sepol_roleallow->new_role = sepol_tgt->s.value; in cil_roleallow_to_policydb()
/external/selinux/checkpolicy/
Dpolicy_define.c3226 tr->new_role = role->s.value; in define_role_trans()
3242 rule->new_role = role->s.value; in define_role_trans()
/external/webrtc/p2p/base/
Dp2p_transport_channel_unittest.cc867 IceRole new_role = GetEndpoint(channel)->ice_role() == ICEROLE_CONTROLLING in OnRoleConflict() local
870 channel->SetIceRole(new_role); in OnRoleConflict()