Lines Matching refs:sepol_user

81 …il_get_sepol_user_datum(policydb_t *pdb, struct cil_symtab_datum *datum, user_datum_t **sepol_user)  in __cil_get_sepol_user_datum()  argument
83 *sepol_user = hashtab_search(pdb->p_users.table, datum->fqn); in __cil_get_sepol_user_datum()
84 if (*sepol_user == NULL) { in __cil_get_sepol_user_datum()
686 user_datum_t *sepol_user = cil_malloc(sizeof(*sepol_user)); in cil_user_to_policydb() local
687 user_datum_init(sepol_user); in cil_user_to_policydb()
690 rc = symtab_insert(pdb, SYM_USERS, key, sepol_user, SCOPE_DECL, 0, &value); in cil_user_to_policydb()
694 sepol_user->s.value = value; in cil_user_to_policydb()
700 user_datum_destroy(sepol_user); in cil_user_to_policydb()
701 free(sepol_user); in cil_user_to_policydb()
708 user_datum_t *sepol_user = NULL; in cil_user_bounds_to_policydb() local
712 rc = __cil_get_sepol_user_datum(pdb, DATUM(cil_user), &sepol_user); in cil_user_bounds_to_policydb()
718 sepol_user->bounds = sepol_parent->s.value; in cil_user_bounds_to_policydb()
731 user_datum_t *sepol_user = NULL; in cil_userrole_to_policydb() local
737 rc = __cil_get_sepol_user_datum(pdb, DATUM(user), &sepol_user); in cil_userrole_to_policydb()
752 if (ebitmap_set_bit(&sepol_user->roles.roles, sepol_role->s.value - 1, 1)) { in cil_userrole_to_policydb()
2285 user_datum_t *sepol_user = NULL; in __cil_constrain_expr_datum_to_sepol_expr() local
2298 rc = __cil_get_sepol_user_datum(pdb, DATUM(db->val_to_user[i]), &sepol_user); in __cil_constrain_expr_datum_to_sepol_expr()
2304 if (ebitmap_set_bit(&expr->names, sepol_user->s.value - 1, 1)) { in __cil_constrain_expr_datum_to_sepol_expr()
2838 user_datum_t *sepol_user = NULL; in cil_userlevel_userrange_to_policydb() local
2840 rc = __cil_get_sepol_user_datum(pdb, DATUM(cil_user), &sepol_user); in cil_userlevel_userrange_to_policydb()
2843 rc = cil_level_to_mls_level(pdb, cil_level, &sepol_user->exp_dfltlevel); in cil_userlevel_userrange_to_policydb()
2848 rc = __cil_levelrange_to_mls_range(pdb, cil_levelrange, &sepol_user->exp_range); in cil_userlevel_userrange_to_policydb()
2863 user_datum_t *sepol_user = NULL; in __cil_context_to_sepol_context() local
2867 rc = __cil_get_sepol_user_datum(pdb, DATUM(cil_context->user), &sepol_user); in __cil_context_to_sepol_context()
2876 sepol_context->user = sepol_user->s.value; in __cil_context_to_sepol_context()