Searched refs:new_role (Results 1 – 14 of 14) sorted by relevance
/third_party/selinux/libsepol/src/ |
D | expand.c | 766 role_datum_t *role, *new_role, *regular_role; in role_fix_callback() local 792 new_role = in role_fix_callback() 795 assert(new_role != NULL && new_role->flavor == ROLE_ATTRIB); in role_fix_callback() 800 if (ebitmap_union(&new_role->roles, &mapped_roles)) { in role_fix_callback() 818 &new_role->types.types)) { in role_fix_callback() 833 role_datum_t *new_role; in role_copy_callback() local 855 new_role = in role_copy_callback() 857 if (!new_role) { in role_copy_callback() 858 new_role = (role_datum_t *) malloc(sizeof(role_datum_t)); in role_copy_callback() 859 if (!new_role) { in role_copy_callback() [all …]
|
D | link.c | 351 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 …]
|
D | policydb_validate.c | 502 if (validate_value(role_trans->new_role, &flavors[SYM_ROLES])) in validate_role_transes() 518 if (validate_value(role_allow->new_role, &flavors[SYM_ROLES])) in validate_role_allows() 575 if (validate_value(role_trans->new_role, &flavors[SYM_ROLES])) in validate_role_trans_rules()
|
D | write.c | 534 buf[2] = cpu_to_le32(tr->new_role); in role_trans_write() 564 buf[1] = cpu_to_le32(ra->new_role); in role_allow_write() 1876 int new_role = p->policyvers >= MOD_POLICYDB_VERSION_ROLETRANS; in role_trans_rule_write() local 1879 if (new_role || only_process(&tr->classes, p)) in role_trans_rule_write() 1887 if (!new_role && !only_process(&tr->classes, p)) { in role_trans_rule_write() 1899 if (new_role) in role_trans_rule_write() 1902 buf[0] = cpu_to_le32(tr->new_role); in role_trans_rule_write()
|
D | services.c | 1008 tcontext->role == ra->new_role) in context_struct_compute_av() 1431 newcontext.role = roletr->new_role; in sepol_compute_sid()
|
D | kernel_to_cil.c | 2308 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_transition_rules_to_cil() 2347 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_allow_rules_to_cil()
|
D | kernel_to_conf.c | 2244 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_transition_rules_to_conf() 2283 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_allow_rules_to_conf()
|
D | policydb.c | 2537 tr->new_role = le32_to_cpu(buf[2]); in role_trans_read() 2576 ra->new_role = le32_to_cpu(buf[1]); in role_allow_read() 3770 tr->new_role = le32_to_cpu(buf[0]); in role_trans_rule_read()
|
D | module_to_cil.c | 1464 pdb->p_role_val_to_name[rule->new_role - 1]); in role_trans_to_cil()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 154 uint32_t new_role; /* new role */ member 160 uint32_t new_role; /* new role */ member 306 uint32_t new_role; /* new role */ member
|
/third_party/selinux/checkpolicy/test/ |
D | dispol.c | 324 display_id(p, fp, SYM_ROLES, rt->new_role - 1, ""); in display_role_trans()
|
D | dismod.c | 493 display_id(p, fp, SYM_ROLES, tr->new_role - 1, ""); in display_role_trans()
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 2341 uint32_t *new_role = NULL; in cil_roletrans_to_policydb() local 2376 new->new_role = sepol_result->s.value; in cil_roletrans_to_policydb() 2378 rc = hashtab_insert(role_trans_table, (hashtab_key_t)new, &(new->new_role)); in cil_roletrans_to_policydb() 2382 new_role = hashtab_search(role_trans_table, (hashtab_key_t)new); in cil_roletrans_to_policydb() 2383 if (new->new_role != *new_role) { in cil_roletrans_to_policydb() 2442 sepol_roleallow->new_role = sepol_tgt->s.value; in cil_roleallow_to_policydb()
|
/third_party/selinux/checkpolicy/ |
D | policy_define.c | 3218 tr->new_role = role->s.value; in define_role_trans() 3234 rule->new_role = role->s.value; in define_role_trans()
|