Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_binary.h94 int cil_role_to_policydb(policydb_t *pdb, struct cil_role *cil_role);
105 int cil_roletype_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_role *role);
Dcil_internal.h310 struct cil_role **val_to_role;
492 struct cil_role { struct
494 struct cil_role *bounds; argument
643 struct cil_role *src;
649 struct cil_role *result;
715 struct cil_role *role;
1053 void cil_role_init(struct cil_role **role);
Dcil_post.c594 struct cil_role *role = node->data; in __cil_post_db_count_helper()
683 struct cil_role *role = node->data; in __cil_post_db_array_helper()
990 struct cil_role *role = (struct cil_role *)datum; in __cil_role_to_bitmap()
1596 static int __cil_role_assign_types(struct cil_role *role, struct cil_symtab_datum *datum) in __cil_role_assign_types()
1658 struct cil_role *role = NULL; in __cil_post_db_roletype_helper()
1672 struct cil_role *role = roletype->role; in __cil_post_db_roletype_helper()
1694 struct cil_role *role = NULL; in __cil_user_assign_roles()
1703 role = (struct cil_role *)datum; in __cil_user_assign_roles()
Dcil_verify.c673 struct cil_role *role = node->data; in __cil_verify_role()
676 struct cil_role *r1 = role; in __cil_verify_role()
677 struct cil_role *r2 = role->bounds; in __cil_verify_role()
736 struct cil_role *role = ctx->role; in __cil_verify_context()
Dcil_binary.c189 struct cil_role *role = (struct cil_role *)datum; in __cil_expand_role()
369 int cil_role_to_policydb(policydb_t *pdb, struct cil_role *cil_role) in cil_role_to_policydb() argument
377 if (cil_role->datum.fqn == CIL_KEY_OBJECT_R) { in cil_role_to_policydb()
384 key = cil_strdup(cil_role->datum.fqn); in cil_role_to_policydb()
404 int cil_role_bounds_to_policydb(policydb_t *pdb, struct cil_role *cil_role) in cil_role_bounds_to_policydb() argument
410 if (cil_role->bounds) { in cil_role_bounds_to_policydb()
411 rc = __cil_get_sepol_role_datum(pdb, DATUM(cil_role), &sepol_role); in cil_role_bounds_to_policydb()
414 rc = __cil_get_sepol_role_datum(pdb, DATUM(cil_role->bounds), &sepol_parent); in cil_role_bounds_to_policydb()
423 cil_log(CIL_ERR, "Failed to insert role bounds for role %s\n", cil_role->datum.fqn); in cil_role_bounds_to_policydb()
427 int cil_roletype_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_role *role) in cil_roletype_to_policydb()
Dcil_policy.c149 struct cil_role *role = node->data; in __cil_gather_statements_helper()
1485 struct cil_role *role; in cil_roles_to_policy()
1498 struct cil_role *role; in cil_role_types_to_policy()
1530 struct cil_role *role; in cil_roleattributes_to_policy()
1589 struct cil_role *role; in cil_users_to_policy()
Dcil_resolve_ast.c1041 roletype->role = (struct cil_role*)role_datum; in cil_resolve_roletype()
1069 roletrans->src = (struct cil_role*)src_datum; in cil_resolve_roletransition()
1094 roletrans->result = (struct cil_role*)result_datum; in cil_resolve_roletransition()
1113 roleallow->src = (struct cil_role*)src_datum; in cil_resolve_roleallow()
1119 roleallow->tgt = (struct cil_role*)tgt_datum; in cil_resolve_roleallow()
1859 context->role = (struct cil_role*)role_datum; in cil_resolve_context()
2609 struct cil_role *role = (struct cil_role *)child_datum; in cil_resolve_bounds()
2617 role->bounds = (struct cil_role *)parent_datum; in cil_resolve_bounds()
Dcil_reset_ast.c137 static void cil_reset_role(struct cil_role *role) in cil_reset_role()
Dcil_build_ast.h98 void cil_destroy_role(struct cil_role *role);
Dcil.c1543 struct cil_role *role = ctx->role; in cil_filecons_to_string()
1606 struct cil_role *role = ctx->role; in cil_filecons_to_string()
2514 void cil_role_init(struct cil_role **role) in cil_role_init()
Dcil_write_ast.c602 struct cil_role *role = (struct cil_role *)node->data; in cil_write_role()
Dcil_copy_ast.c503 struct cil_role *orig = data; in cil_copy_role()
509 struct cil_role *new; in cil_copy_role()
Dcil_tree.c733 struct cil_role *role = node->data; in cil_tree_print_node()
Dcil_build_ast.c1671 struct cil_role *role = NULL; in cil_gen_role()
1701 void cil_destroy_role(struct cil_role *role) in cil_destroy_role()