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.h312 struct cil_role **val_to_role;
494 struct cil_role { struct
496 struct cil_role *bounds; argument
645 struct cil_role *src;
651 struct cil_role *result;
717 struct cil_role *role;
1057 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()
1668 struct cil_role *role = roletype->role; in __cil_post_db_roletype_helper()
1690 struct cil_role *role = NULL; in __cil_user_assign_roles()
1699 role = (struct cil_role *)datum; in __cil_user_assign_roles()
Dcil_verify.c675 struct cil_role *role = node->data; in __cil_verify_role()
678 struct cil_role *r1 = role; in __cil_verify_role()
679 struct cil_role *r2 = role->bounds; in __cil_verify_role()
738 struct cil_role *role = ctx->role; in __cil_verify_context()
Dcil_binary.c188 struct cil_role *role = (struct cil_role *)datum; in __cil_expand_role()
368 int cil_role_to_policydb(policydb_t *pdb, struct cil_role *cil_role) in cil_role_to_policydb() argument
376 if (cil_role->datum.fqn == CIL_KEY_OBJECT_R) { in cil_role_to_policydb()
383 key = cil_strdup(cil_role->datum.fqn); in cil_role_to_policydb()
403 int cil_role_bounds_to_policydb(policydb_t *pdb, struct cil_role *cil_role) in cil_role_bounds_to_policydb() argument
409 if (cil_role->bounds) { in cil_role_bounds_to_policydb()
410 rc = __cil_get_sepol_role_datum(pdb, DATUM(cil_role), &sepol_role); in cil_role_bounds_to_policydb()
413 rc = __cil_get_sepol_role_datum(pdb, DATUM(cil_role->bounds), &sepol_parent); in cil_role_bounds_to_policydb()
422 cil_log(CIL_ERR, "Failed to insert role bounds for role %s\n", cil_role->datum.fqn); in cil_role_bounds_to_policydb()
426 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()
1482 struct cil_role *role; in cil_roles_to_policy()
1495 struct cil_role *role; in cil_role_types_to_policy()
1527 struct cil_role *role; in cil_roleattributes_to_policy()
1586 struct cil_role *role; in cil_users_to_policy()
Dcil_resolve_ast.c1037 roletype->role = (struct cil_role*)role_datum; in cil_resolve_roletype()
1065 roletrans->src = (struct cil_role*)src_datum; in cil_resolve_roletransition()
1090 roletrans->result = (struct cil_role*)result_datum; in cil_resolve_roletransition()
1109 roleallow->src = (struct cil_role*)src_datum; in cil_resolve_roleallow()
1115 roleallow->tgt = (struct cil_role*)tgt_datum; in cil_resolve_roleallow()
1858 context->role = (struct cil_role*)role_datum; in cil_resolve_context()
2608 struct cil_role *role = (struct cil_role *)child_datum; in cil_resolve_bounds()
2616 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_write_ast.c602 struct cil_role *role = (struct cil_role *)node->data; in cil_write_role()
Dcil.c1707 struct cil_role *role = ctx->role; in cil_filecons_to_string()
1770 struct cil_role *role = ctx->role; in cil_filecons_to_string()
2678 void cil_role_init(struct cil_role **role) in cil_role_init()
Dcil_copy_ast.c503 struct cil_role *orig = data; in cil_copy_role()
509 struct cil_role *new; in cil_copy_role()
Dcil_tree.c737 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()