Home
last modified time | relevance | path

Searched refs:cil_level (Results 1 – 18 of 18) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil_internal.h414 struct cil_level *dftlevel;
428 struct cil_level *level;
625 struct cil_level { struct
635 struct cil_level *low; argument
637 struct cil_level *high;
898 void cil_level_init(struct cil_level **level);
Dcil_binary.h450 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level);
Dcil_copy_ast.h90 void cil_copy_fill_level(struct cil_db *db, struct cil_level *orig, struct cil_level **new);
Dcil_reset_ast.c8 static inline void cil_reset_level(struct cil_level *level);
215 static inline void cil_reset_level(struct cil_level *level) in cil_reset_level()
Dcil_resolve_ast.h70 int cil_resolve_level(struct cil_tree_node *current, struct cil_level *level, void *extra_args);
Dcil_build_ast.h155 void cil_destroy_level(struct cil_level *level);
218 int cil_fill_level(struct cil_tree_node *sens, struct cil_level *level);
Dcil_verify.c720 struct cil_level *user_low = user->range->low; in __cil_verify_context()
721 struct cil_level *user_high = user->range->high; in __cil_verify_context()
722 struct cil_level *ctx_low = ctx->range->low; in __cil_verify_context()
723 struct cil_level *ctx_high = ctx->range->high; in __cil_verify_context()
Dcil_policy.c422 void cil_level_to_policy(FILE **file_arr, uint32_t file_index, struct cil_level *level) in cil_level_to_policy()
435 struct cil_level *low = lvlrange->low; in cil_levelrange_to_policy()
436 struct cil_level *high = lvlrange->high; in cil_levelrange_to_policy()
1059 cil_level_to_policy(file_arr, LEVELS, (struct cil_level*)current->data); in cil_name_to_policy()
Dcil.c1216 static int cil_level_equals(struct cil_level *low, struct cil_level *high) in cil_level_equals()
1246 static int __cil_level_strlen(struct cil_level *lvl) in __cil_level_strlen()
1298 static int __cil_level_to_string(struct cil_level *lvl, char *out) in __cil_level_to_string()
1767 void cil_level_init(struct cil_level **level) in cil_level_init()
Dcil_binary.c2482 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level) in cil_level_to_mls_level() argument
2485 struct cil_sens *cil_sens = cil_level->sens; in cil_level_to_mls_level()
2486 struct cil_cats *cats = cil_level->cats; in cil_level_to_mls_level()
2512 struct cil_level *low = cil_lvlrange->low; in __cil_levelrange_to_mls_range()
2513 struct cil_level *high = cil_lvlrange->high; in __cil_levelrange_to_mls_range()
2539 struct cil_level *cil_level = cil_user->dftlevel; in cil_userlevel_userrange_to_policydb() local
2546 rc = cil_level_to_mls_level(pdb, cil_level, &sepol_user->exp_dfltlevel); in cil_userlevel_userrange_to_policydb()
Dcil_copy_ast.c892 void cil_copy_fill_level(struct cil_db *db, struct cil_level *orig, struct cil_level **new) in cil_copy_fill_level()
905 struct cil_level *orig = data; in cil_copy_level()
906 struct cil_level *new = NULL; in cil_copy_level()
Dcil_tree.c46 void cil_tree_print_level(struct cil_level *level);
508 void cil_tree_print_level(struct cil_level *level) in cil_tree_print_level()
1218 struct cil_level *level = node->data; in cil_tree_print_node()
Dcil_resolve_ast.c783 usrlvl->level = (struct cil_level*)lvl_datum; in cil_resolve_userlevel()
1519 int cil_resolve_level(struct cil_tree_node *current, struct cil_level *level, void *extra_args) in cil_resolve_level()
1556 lvlrange->low = (struct cil_level*)low_datum; in cil_resolve_levelrange()
1577 lvlrange->high = (struct cil_level*)high_datum; in cil_resolve_levelrange()
2500 struct cil_level *level = NULL; in cil_resolve_call1()
3168 rc = cil_resolve_level(node, (struct cil_level*)node->data, args); in __cil_resolve_ast_node()
Dcil_build_ast.c3428 struct cil_level *level = NULL; in cil_gen_level()
3464 void cil_destroy_level(struct cil_level *level) in cil_destroy_level()
4910 cil_destroy_level((struct cil_level *)args->arg); in cil_destroy_args()
5175 int cil_fill_level(struct cil_tree_node *curr, struct cil_level *level) in cil_fill_level()
Dcil_post.c1133 static int __evaluate_level_expression(struct cil_level *level, struct cil_db *db) in __evaluate_level_expression()
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_copy_ast.c881 cil_level_init((struct cil_level**)&test_copy->data); in test_cil_copy_fill_level()
886 …int rc = cil_copy_fill_level((struct cil_level*)test_ast_node->data, (struct cil_level*)test_copy-… in test_cil_copy_fill_level()
888 CuAssertStrEquals(tc, ((struct cil_level *)test_copy->data)->sens_str, in test_cil_copy_fill_level()
889 ((struct cil_level *)test_ast_node->data)->sens_str); in test_cil_copy_fill_level()
Dtest_cil_resolve_ast.c1182 int rc = cil_resolve_level(level, (struct cil_level*)level->data, args); in test_cil_resolve_level()
1183 int rc2 = cil_resolve_level(level->next, (struct cil_level*)level->next->data, args); in test_cil_resolve_level()
1217 int rc = cil_resolve_level(level, (struct cil_level*)level->data, args); in test_cil_resolve_level_catlist()
1219 rc = cil_resolve_level(level, (struct cil_level*)level->data, args); in test_cil_resolve_level_catlist()
1264 int rc = cil_resolve_level(level, (struct cil_level*)level->data, args); in test_cil_resolve_level_catset()
1299 int rc = cil_resolve_level(level, (struct cil_level*)level->data, args); in test_cil_resolve_level_catset_name_neg()
1331 int rc = cil_resolve_level(level, (struct cil_level*)level->data, args); in test_cil_resolve_level_sens_neg()
1332 int rc2 = cil_resolve_level(level->next, (struct cil_level*)level->next->data, args); in test_cil_resolve_level_sens_neg()
1364 int rc = cil_resolve_level(level, (struct cil_level*)level->data, args); in test_cil_resolve_level_cat_neg()
1365 int rc2 = cil_resolve_level(level->next, (struct cil_level*)level->next->data, args); in test_cil_resolve_level_cat_neg()
[all …]
Dtest_cil_build_ast.c11178 struct cil_level *test_level; in test_cil_fill_level()
11202 struct cil_level *test_level; in test_cil_fill_level_sensnull_neg()
11226 struct cil_level *test_level = NULL; in test_cil_fill_level_levelnull_neg()
11249 struct cil_level *test_level; in test_cil_fill_level_nocat()
11273 struct cil_level *test_level; in test_cil_fill_level_emptycat_neg()