Home
last modified time | relevance | path

Searched refs:user_datum_t (Results 1 – 18 of 18) sorted by relevance

/external/selinux/libsepol/src/
Dusers.c21 user_datum_t *usrdatum = policydb->user_val_to_struct[user_idx]; in user_to_record()
121 user_datum_t *usrdatum = NULL; in sepol_user_modify()
154 usrdatum = (user_datum_t *) malloc(sizeof(user_datum_t)); in sepol_user_modify()
236 1) * sizeof(user_datum_t *)); in sepol_user_modify()
323 user_datum_t *usrdatum = NULL; in sepol_user_query()
Dcontext.c39 user_datum_t *usrdatum; in context_is_valid()
151 user_datum_t *usrdatum; in context_from_record()
169 usrdatum = (user_datum_t *) hashtab_search(policydb->p_users.table, in context_from_record()
Dmls.h64 extern int mls_setup_user_range(context_struct_t * fromcon, user_datum_t * user,
Dgenusers.c41 user_datum_t *usrdatum;
104 usrdatum = malloc(sizeof(user_datum_t));
Dhierarchy.c563 user_datum_t *u = (user_datum_t *) d; in bounds_check_user_callback()
564 user_datum_t *up = NULL; in bounds_check_user_callback()
Dpolicydb.c521 void user_datum_init(user_datum_t * x) in user_datum_init()
523 memset(x, 0, sizeof(user_datum_t)); in user_datum_init()
532 void user_datum_destroy(user_datum_t * x) in user_datum_destroy()
924 user_datum_t *user; in policydb_user_cache()
926 user = (user_datum_t *) datum; in policydb_user_cache()
1038 user_datum_t *usrdatum; in user_index()
1040 usrdatum = (user_datum_t *) datum; in user_index()
1219 p->user_val_to_struct = (user_datum_t **) in policydb_index_others()
1220 calloc(p->p_users.nprim, sizeof(user_datum_t *)); in policydb_index_others()
1353 user_datum_destroy((user_datum_t *) datum); in user_destroy()
[all …]
Dlink.c536 user_datum_t *user, *base_user, *new_user = NULL; in user_copy_callback()
539 user = (user_datum_t *) datum; in user_copy_callback()
551 (user_datum_t *) malloc(sizeof(*new_user))) == NULL) { in user_copy_callback()
822 user_datum_t *user = (user_datum_t *) datum; in user_bounds_copy_callback()
823 user_datum_t *dest; in user_bounds_copy_callback()
1217 user_datum_t *user, *new_user = NULL; in user_fix_callback()
1222 user = (user_datum_t *) datum; in user_fix_callback()
Dexpand.c594 user_datum_t *user = (user_datum_t *) datum; in user_bounds_copy_callback()
595 user_datum_t *dest; in user_bounds_copy_callback()
960 user_datum_t *user; in user_copy_callback()
961 user_datum_t *new_user; in user_copy_callback()
966 user = (user_datum_t *) datum; in user_copy_callback()
978 (user_datum_t *) hashtab_search(state->out->p_users.table, id); in user_copy_callback()
980 new_user = (user_datum_t *) malloc(sizeof(user_datum_t)); in user_copy_callback()
985 memset(new_user, 0, sizeof(user_datum_t)); in user_copy_callback()
Dmls.c262 user_datum_t *usrdatum; in mls_context_isvalid()
511 int mls_setup_user_range(context_struct_t * fromcon, user_datum_t * user, in mls_setup_user_range()
Dservices.c1636 user_datum_t *usrdatum; in convert_context()
1647 usrdatum = (user_datum_t *) hashtab_search(args->newp->p_users.table, in convert_context()
2169 user_datum_t *user; in sepol_get_user_sids()
2182 user = (user_datum_t *) hashtab_search(policydb->p_users.table, in sepol_get_user_sids()
Dwrite.c1215 user_datum_t *usrdatum; in user_write()
1222 usrdatum = (user_datum_t *) datum; in user_write()
/external/selinux/libsepol/tests/
Dtest-expander-users.c33 user_datum_t *user; in check_user_roles()
40 user = (user_datum_t *) hashtab_search(p->p_users.table, user_name); in check_user_roles()
Dtest-common.c102 user_datum_t *d = (user_datum_t *) datum; in user_test_index()
/external/selinux/checkpolicy/
Dmodule_compiler.c461 char *user_id, user_datum_t *user) in user_implicit_bounds()
463 user_datum_t *bounds; in user_implicit_bounds()
497 static int create_user(uint32_t scope, user_datum_t **user, char **key) in create_user()
500 user_datum_t *datum = NULL; in create_user()
549 user_datum_t *declare_user(void) in declare_user()
552 user_datum_t *user = NULL; in declare_user()
553 user_datum_t *dest_user = NULL; in declare_user()
958 user_datum_t *user = NULL; in require_user()
Dmodule_compiler.h35 user_datum_t *declare_user(void);
Dpolicy_define.c3799 user_datum_t *user; in define_cexpr()
3883 (user_datum_t *) hashtab_search(policydbp-> in define_cexpr()
4312 user_datum_t *usrdatum; in define_user()
4421 user_datum_t *usrdatum; in parse_security_context()
4467 usrdatum = (user_datum_t *) hashtab_search(policydbp->p_users.table, in parse_security_context()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h212 } user_datum_t; typedef
545 user_datum_t **user_val_to_struct;
677 extern void user_datum_init(user_datum_t * x);
678 extern void user_datum_destroy(user_datum_t * x);
/external/selinux/libsepol/cil/src/
Dcil_binary.c88 static int __cil_get_sepol_user_datum(policydb_t *pdb, struct cil_symtab_datum *datum, user_datum_t in __cil_get_sepol_user_datum()
695 user_datum_t *sepol_user = cil_malloc(sizeof(*sepol_user)); in cil_user_to_policydb()
717 user_datum_t *sepol_user = NULL; in cil_user_bounds_to_policydb()
718 user_datum_t *sepol_parent = NULL; in cil_user_bounds_to_policydb()
740 user_datum_t *sepol_user = NULL; in cil_userrole_to_policydb()
2482 user_datum_t *sepol_user = NULL; in __cil_constrain_expr_datum_to_sepol_expr()
3042 user_datum_t *sepol_user = NULL; in cil_userlevel_userrange_to_policydb()
3067 user_datum_t *sepol_user = NULL; in __cil_context_to_sepol_context()
4025 user_datum_t *user = (user_datum_t *)datum; in __cil_user_val_array_insert()
4108 policydb->user_val_to_struct = cil_malloc(sizeof(user_datum_t *) * policydb->p_users.nprim); in __cil_policydb_val_arrays_create()