/external/selinux/libsepol/cil/src/ |
D | cil_post.c | 752 static int __evaluate_permissionx_expression(struct cil_permissionx *permx, struct cil_db *db) in __evaluate_permissionx_expression() argument 756 permx->perms = cil_malloc(sizeof(*permx->perms)); in __evaluate_permissionx_expression() 757 ebitmap_init(permx->perms); in __evaluate_permissionx_expression() 759 …rc = __cil_expr_to_bitmap(permx->expr_str, permx->perms, 0x10000, db); // max is one more than 0xF… in __evaluate_permissionx_expression() 762 ebitmap_destroy(permx->perms); in __evaluate_permissionx_expression() 763 free(permx->perms); in __evaluate_permissionx_expression() 764 permx->perms = NULL; in __evaluate_permissionx_expression() 1225 rc = __evaluate_permissionx_expression(rule->perms.x.permx, db); in __cil_post_db_attr_helper() 1231 struct cil_permissionx *permx = node->data; in __cil_post_db_attr_helper() local 1232 rc = __evaluate_permissionx_expression(permx, db); in __cil_post_db_attr_helper()
|
D | cil.c | 2129 void cil_permissionx_init(struct cil_permissionx **permx) in cil_permissionx_init() argument 2131 *permx = cil_malloc(sizeof(**permx)); in cil_permissionx_init() 2133 cil_symtab_datum_init(&(*permx)->datum); in cil_permissionx_init() 2134 (*permx)->kind = CIL_NONE; in cil_permissionx_init() 2135 (*permx)->obj_str = NULL; in cil_permissionx_init() 2136 (*permx)->obj = NULL; in cil_permissionx_init() 2137 (*permx)->expr_str = NULL; in cil_permissionx_init() 2138 (*permx)->perms = NULL; in cil_permissionx_init()
|
D | cil_find.c | 335 if (cil_permissionx_match_any(avrule->perms.x.permx, target->perms.x.permx)) { in cil_find_matching_avrule()
|
D | cil_build_ast.c | 2060 if (rule->perms.x.permx_str == NULL && rule->perms.x.permx != NULL) { in cil_destroy_avrule() 2061 cil_destroy_permissionx(rule->perms.x.permx); in cil_destroy_avrule() 2068 int cil_fill_permissionx(struct cil_tree_node *parse_current, struct cil_permissionx *permx) in cil_fill_permissionx() argument 2085 permx->kind = CIL_PERMX_KIND_IOCTL; in cil_fill_permissionx() 2092 permx->obj_str = parse_current->next->data; in cil_fill_permissionx() 2094 rc = cil_gen_expr(parse_current->next->next, CIL_PERMISSIONX, &permx->expr_str); in cil_fill_permissionx() 2117 struct cil_permissionx *permx = NULL; in cil_gen_permissionx() local 2129 cil_permissionx_init(&permx); in cil_gen_permissionx() 2133 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)permx, (hashtab_key_t)key, CIL_SYM_PERMX… in cil_gen_permissionx() 2138 rc = cil_fill_permissionx(parse_current->next->next->cl_head, permx); in cil_gen_permissionx() [all …]
|
D | cil_verify.c | 1230 int __cil_verify_permissionx(struct cil_permissionx *permx, struct cil_tree_node *node) in __cil_verify_permissionx() argument 1239 switch (permx->kind) { in __cil_verify_permissionx() 1244 …cil_log(CIL_ERR, "Invalid permissionx kind (%d) at line %d of %s\n", permx->kind, node->line, node… in __cil_verify_permissionx() 1249 classes = cil_expand_class(permx->obj); in __cil_verify_permissionx() 1280 return __cil_verify_permissionx(avrulex->perms.x.permx, node); in __cil_verify_avrulex()
|
D | cil_internal.h | 584 struct cil_permissionx *permx; member 975 void cil_permissionx_init(struct cil_permissionx **permx);
|
D | cil_binary.c | 1665 …_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_permissionx *permx, struct cil_args_b… in __cil_avrulex_to_hashtable_helper() argument 1680 class_list = cil_expand_class(permx->obj); in __cil_avrulex_to_hashtable_helper() 1686 switch (permx->kind) { in __cil_avrulex_to_hashtable_helper() 1688 …rulex_ioctl_table, kind, sepol_src->s.value, sepol_tgt->s.value, sepol_obj->s.value, permx->perms); in __cil_avrulex_to_hashtable_helper() 1735 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, src, cil_avrulex->perms.x.permx, args); in cil_avrulex_to_hashtable() 1741 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, tgt, cil_avrulex->perms.x.permx, args); in cil_avrulex_to_hashtable() 4146 static int __cil_permx_to_sepol_class_perms(policydb_t *pdb, struct cil_permissionx *permx, class_p… in __cil_permx_to_sepol_class_perms() argument 4156 class_list = cil_expand_class(permx->obj); in __cil_permx_to_sepol_class_perms() 4164 switch (permx->kind) { in __cil_permx_to_sepol_class_perms() 4325 __cil_print_permissionx(avrule->perms.x.permx); in __cil_print_rule() [all …]
|
D | cil_build_ast.h | 116 void cil_destroy_permissionx(struct cil_permissionx *permx);
|
D | cil_copy_ast.c | 810 cil_permissionx_init(&new->perms.x.permx); in cil_copy_avrule() 811 cil_copy_fill_permissionx(db, orig->perms.x.permx, new->perms.x.permx); in cil_copy_avrule()
|
D | cil_resolve_ast.c | 276 int cil_resolve_permissionx(struct cil_tree_node *current, struct cil_permissionx *permx, void *ext… in cil_resolve_permissionx() argument 281 rc = cil_resolve_name(current, permx->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_permissionx() 285 permx->obj = (struct cil_class*)obj_datum; in cil_resolve_permissionx() 341 rule->perms.x.permx = (struct cil_permissionx*)permx_datum; in cil_resolve_avrule() 343 rc = cil_resolve_permissionx(current, rule->perms.x.permx, extra_args); in cil_resolve_avrule()
|