Home
last modified time | relevance | path

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

/third_party/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.h319 struct cil_role **val_to_role;
502 struct cil_role { struct
504 struct cil_role *bounds; argument
653 struct cil_role *src;
659 struct cil_role *result;
725 struct cil_role *role;
1068 void cil_role_init(struct cil_role **role);
Dcil_post.c608 struct cil_role *role = node->data; in __cil_post_db_count_helper()
697 struct cil_role *role = node->data; in __cil_post_db_array_helper()
1004 struct cil_role *role = (struct cil_role *)datum; in __cil_role_to_bitmap()
1614 static int __cil_role_assign_types(struct cil_role *role, struct cil_symtab_datum *datum) in __cil_role_assign_types()
1676 struct cil_role *role = NULL; in __cil_post_db_roletype_helper()
1686 struct cil_role *role = roletype->role; in __cil_post_db_roletype_helper()
1708 struct cil_role *role = NULL; in __cil_user_assign_roles()
1717 role = (struct cil_role *)datum; in __cil_user_assign_roles()
Dcil_binary.c184 struct cil_role *role = (struct cil_role *)datum; in __cil_expand_role()
364 int cil_role_to_policydb(policydb_t *pdb, struct cil_role *cil_role) in cil_role_to_policydb() argument
372 if (cil_role->datum.fqn == CIL_KEY_OBJECT_R) { in cil_role_to_policydb()
379 key = cil_strdup(cil_role->datum.fqn); in cil_role_to_policydb()
399 int cil_role_bounds_to_policydb(policydb_t *pdb, struct cil_role *cil_role) in cil_role_bounds_to_policydb() argument
405 if (cil_role->bounds) { in cil_role_bounds_to_policydb()
406 rc = __cil_get_sepol_role_datum(pdb, DATUM(cil_role), &sepol_role); in cil_role_bounds_to_policydb()
409 rc = __cil_get_sepol_role_datum(pdb, DATUM(cil_role->bounds), &sepol_parent); in cil_role_bounds_to_policydb()
418 cil_log(CIL_ERR, "Failed to insert role bounds for role %s\n", cil_role->datum.fqn); in cil_role_bounds_to_policydb()
422 int cil_roletype_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_role *role) in cil_roletype_to_policydb()
Dcil_policy.c150 struct cil_role *role = node->data; in __cil_gather_statements_helper()
1483 struct cil_role *role; in cil_roles_to_policy()
1496 struct cil_role *role; in cil_role_types_to_policy()
1528 struct cil_role *role; in cil_roleattributes_to_policy()
1587 struct cil_role *role; in cil_users_to_policy()
Dcil_verify.c820 struct cil_role *role = node->data; in __cil_verify_role()
823 struct cil_role *r1 = role; in __cil_verify_role()
824 struct cil_role *r2 = role->bounds; in __cil_verify_role()
883 struct cil_role *role = ctx->role; in __cil_verify_context()
Dcil_resolve_ast.c1046 roletype->role = (struct cil_role*)role_datum; in cil_resolve_roletype()
1074 roletrans->src = (struct cil_role*)src_datum; in cil_resolve_roletransition()
1098 roletrans->result = (struct cil_role*)result_datum; in cil_resolve_roletransition()
1117 roleallow->src = (struct cil_role*)src_datum; in cil_resolve_roleallow()
1123 roleallow->tgt = (struct cil_role*)tgt_datum; in cil_resolve_roleallow()
1868 context->role = (struct cil_role*)role_datum; in cil_resolve_context()
2554 struct cil_role *role = (struct cil_role *)child_datum; in cil_resolve_bounds()
2562 role->bounds = (struct cil_role *)parent_datum; in cil_resolve_bounds()
Dcil_reset_ast.c151 static void cil_reset_role(struct cil_role *role) in cil_reset_role()
Dcil_build_ast.h100 void cil_destroy_role(struct cil_role *role);
Dcil.c1735 struct cil_role *role = ctx->role; in cil_filecons_to_string()
1798 struct cil_role *role = ctx->role; in cil_filecons_to_string()
2762 void cil_role_init(struct cil_role **role) in cil_role_init()
Dcil_copy_ast.c512 struct cil_role *orig = data; in cil_copy_role()
518 struct cil_role *new; in cil_copy_role()
Dcil_build_ast.c1735 struct cil_role *role = NULL; in cil_gen_role()
1765 void cil_destroy_role(struct cil_role *role) in cil_destroy_role()