Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_binary.h451 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level);
Dcil_internal.h428 struct cil_level *dftlevel;
455 struct cil_level *level;
669 struct cil_level { struct
679 struct cil_level *low; argument
681 struct cil_level *high;
942 void cil_level_init(struct cil_level **level);
Dcil_copy_ast.h92 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);
240 static inline void cil_reset_level(struct cil_level *level) in cil_reset_level()
Dcil_resolve_ast.h71 int cil_resolve_level(struct cil_tree_node *current, struct cil_level *level, void *extra_args);
Dcil_build_ast.h162 void cil_destroy_level(struct cil_level *level);
225 int cil_fill_level(struct cil_tree_node *sens, struct cil_level *level);
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_verify.c732 struct cil_level *user_low = user->range->low; in __cil_verify_context()
733 struct cil_level *user_high = user->range->high; in __cil_verify_context()
734 struct cil_level *ctx_low = ctx->range->low; in __cil_verify_context()
735 struct cil_level *ctx_high = ctx->range->high; in __cil_verify_context()
Dcil.c1263 static int cil_level_equals(struct cil_level *low, struct cil_level *high) in cil_level_equals()
1293 static int __cil_level_strlen(struct cil_level *lvl) in __cil_level_strlen()
1345 static int __cil_level_to_string(struct cil_level *lvl, char *out) in __cil_level_to_string()
1814 void cil_level_init(struct cil_level **level) in cil_level_init()
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()
1236 struct cil_level *level = node->data; in cil_tree_print_node()
Dcil_copy_ast.c971 void cil_copy_fill_level(struct cil_db *db, struct cil_level *orig, struct cil_level **new) in cil_copy_fill_level()
984 struct cil_level *orig = data; in cil_copy_level()
985 struct cil_level *new = NULL; in cil_copy_level()
Dcil_binary.c2779 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
2782 struct cil_sens *cil_sens = cil_level->sens; in cil_level_to_mls_level()
2783 struct cil_cats *cats = cil_level->cats; in cil_level_to_mls_level()
2809 struct cil_level *low = cil_lvlrange->low; in __cil_levelrange_to_mls_range()
2810 struct cil_level *high = cil_lvlrange->high; in __cil_levelrange_to_mls_range()
2836 struct cil_level *cil_level = cil_user->dftlevel; in cil_userlevel_userrange_to_policydb() local
2843 rc = cil_level_to_mls_level(pdb, cil_level, &sepol_user->exp_dfltlevel); in cil_userlevel_userrange_to_policydb()
Dcil_resolve_ast.c822 usrlvl->level = (struct cil_level*)lvl_datum; in cil_resolve_userlevel()
1642 int cil_resolve_level(struct cil_tree_node *current, struct cil_level *level, void *extra_args) in cil_resolve_level()
1679 lvlrange->low = (struct cil_level*)low_datum; in cil_resolve_levelrange()
1700 lvlrange->high = (struct cil_level*)high_datum; in cil_resolve_levelrange()
2780 struct cil_level *level = NULL; in cil_resolve_call1()
3500 rc = cil_resolve_level(node, (struct cil_level*)node->data, args); in __cil_resolve_ast_node()
Dcil_build_ast.c3760 struct cil_level *level = NULL; in cil_gen_level()
3796 void cil_destroy_level(struct cil_level *level) in cil_destroy_level()
5242 cil_destroy_level((struct cil_level *)args->arg); in cil_destroy_args()
5507 int cil_fill_level(struct cil_tree_node *curr, struct cil_level *level) in cil_fill_level()
Dcil_post.c1447 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()