Home
last modified time | relevance | path

Searched refs:hashtab_insert (Results 1 – 12 of 12) sorted by relevance

/third_party/selinux/libsepol/include/sepol/policydb/
Dhashtab.h67 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d);
/third_party/selinux/libsepol/cil/src/
Dcil_strpool.c78 rc = hashtab_insert(cil_strpool_tab, strpool_ref->str, strpool_ref); in cil_strpool_add()
Dcil_symtab.c90 int rc = hashtab_insert(symtab->table, key, (hashtab_datum_t)datum); in cil_symtab_insert()
Dcil_binary.c268 rc = hashtab_insert(sepol_common->permissions.table, key, sepol_perm); in cil_common_to_policydb()
346 rc = hashtab_insert(sepol_class->permissions.table, key, sepol_perm); in cil_classorder_to_policydb()
1708 rc = hashtab_insert(h, (hashtab_key_t)avtab_key, hashtab_xperms); in __cil_avrulex_ioctl_to_hashtable()
2378 rc = hashtab_insert(role_trans_table, (hashtab_key_t)new, &(new->new_role)); in cil_roletrans_to_policydb()
3207 rc = hashtab_insert(pdb->range_tr, (hashtab_key_t)newkey, newdatum); in cil_rangetransition_to_policydb()
/third_party/selinux/libsepol/src/
Dlink.c162 ret = hashtab_insert(dest_class->permissions.table, in permission_copy_callback()
306 ret = hashtab_insert(state->base->p_classes.table, in class_copy_callback()
394 ret = hashtab_insert(state->base->p_roles.table, in role_copy_callback()
415 if (hashtab_insert in role_copy_callback()
492 ret = hashtab_insert(state->base->p_types.table, in type_copy_callback()
514 if (hashtab_insert in type_copy_callback()
560 ret = hashtab_insert(state->base->p_users.table, in user_copy_callback()
580 if (hashtab_insert in user_copy_callback()
624 ret = hashtab_insert(state->base->p_bools.table, in bool_copy_callback()
912 if (hashtab_insert in alias_copy_callback()
[all …]
Dpolicydb.c1659 rc = hashtab_insert(pol->symtab[sym].table, key, datum); in symtab_insert()
1687 hashtab_insert(pol->scope[sym].table, key2, in symtab_insert()
2070 if (hashtab_insert(h, key, perdatum)) in perm_read()
2121 if (hashtab_insert(h, key, comdatum)) in common_read()
2325 if (hashtab_insert(h, key, cladatum)) in class_read()
2404 if (hashtab_insert(h, key, role)) in role_read()
2497 if (hashtab_insert(h, key, typdatum)) in type_read()
2643 if (hashtab_insert(p->filename_trans, (hashtab_key_t)ft, in policydb_filetrans_insert()
2806 rc = hashtab_insert(p->filename_trans, (hashtab_key_t)ft, in filename_trans_read_one()
3380 if (hashtab_insert(h, key, usrdatum)) in user_read()
[all …]
Dexpand.c157 ret = hashtab_insert(state->out->p_types.table, in type_copy_callback()
246 ret = hashtab_insert(s->table, new_id, (hashtab_datum_t) new_perm); in perm_copy_callback()
296 hashtab_insert(state->out->p_commons.table, new_id, in common_copy_callback()
494 hashtab_insert(state->out->p_classes.table, new_id, in class_copy_callback()
716 ret = hashtab_insert(state->out->p_types.table, in alias_copy_callback()
876 ret = hashtab_insert(state->out->p_roles.table, in role_copy_callback()
1028 ret = hashtab_insert(state->out->p_users.table, in user_copy_callback()
1141 ret = hashtab_insert(state->out->p_bools.table, in bool_copy_callback()
1192 if (hashtab_insert(state->out->p_levels.table, in sens_copy_callback()
1237 if (hashtab_insert(state->out->p_cats.table, in cats_copy_callback()
[all …]
Dhashtab.c105 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) in hashtab_insert() function
Dusers.c252 if (hashtab_insert(policydb->p_users.table, name, in sepol_user_modify()
Dconditional.c605 if (hashtab_insert(h, key, booldatum)) in cond_read_bool()
/third_party/selinux/checkpolicy/
Dmodule_compiler.c360 ret2 = hashtab_insert(roles_tab, key, dest_role); in declare_role()
593 ret2 = hashtab_insert(users_tab, key, dest_user); in declare_user()
642 if (hashtab_insert(types_tab, id, dest_typdatum)) { in get_local_type()
692 if (hashtab_insert(roles_tab, id, dest_roledatum)) { in get_local_role()
861 hashtab_insert(datum->permissions.table, perm_id, in require_class()
Dpolicy_define.c520 ret = hashtab_insert(policydbp->p_commons.table, in define_common_perms()
551 ret = hashtab_insert(comdatum->permissions.table, in define_common_perms()
674 ret = hashtab_insert(cladatum->permissions.table, in define_av_perms()