Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/cil/src/
Dcil_binary.h475 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level);
Dcil_internal.h452 struct cil_level *dftlevel;
479 struct cil_level *level;
705 struct cil_level { struct
715 struct cil_level *low; argument
717 struct cil_level *high;
1004 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_resolve_ast.h71 int cil_resolve_level(struct cil_tree_node *current, struct cil_level *level, void *extra_args);
Dcil_reset_ast.c9 static inline void cil_reset_level(struct cil_level *level);
262 static inline void cil_reset_level(struct cil_level *level) in cil_reset_level()
Dcil_build_ast.h166 void cil_destroy_level(struct cil_level *level);
235 int cil_fill_level(struct cil_tree_node *sens, struct cil_level *level);
Dcil_verify.c885 struct cil_level *user_low = user->range->low; in __cil_verify_context()
886 struct cil_level *user_high = user->range->high; in __cil_verify_context()
887 struct cil_level *ctx_low = ctx->range->low; in __cil_verify_context()
888 struct cil_level *ctx_high = ctx->range->high; in __cil_verify_context()
Dcil_write_ast.c322 static void write_level(FILE *out, struct cil_level *level, int print_name) in write_level()
432 struct cil_level *level = (struct cil_level *)arg->arg; in write_call_args()
913 struct cil_level *level = node->data; in cil_write_ast_node()
Dcil.c1509 static int cil_level_equals(struct cil_level *low, struct cil_level *high) in cil_level_equals()
1541 static int __cil_level_strlen(struct cil_level *lvl) in __cil_level_strlen()
1593 static int __cil_level_to_string(struct cil_level *lvl, char *out) in __cil_level_to_string()
2126 void cil_level_init(struct cil_level **level) in cil_level_init()
Dcil_copy_ast.c986 void cil_copy_fill_level(struct cil_db *db, struct cil_level *orig, struct cil_level **new) in cil_copy_fill_level()
999 struct cil_level *orig = data; in cil_copy_level()
1000 struct cil_level *new = NULL; in cil_copy_level()
Dcil_binary.c3005 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
3008 struct cil_sens *cil_sens = cil_level->sens; in cil_level_to_mls_level()
3009 struct cil_cats *cats = cil_level->cats; in cil_level_to_mls_level()
3035 struct cil_level *low = cil_lvlrange->low; in __cil_levelrange_to_mls_range()
3036 struct cil_level *high = cil_lvlrange->high; in __cil_levelrange_to_mls_range()
3062 struct cil_level *cil_level = cil_user->dftlevel; in cil_userlevel_userrange_to_policydb() local
3069 rc = cil_level_to_mls_level(pdb, cil_level, &sepol_user->exp_dfltlevel); in cil_userlevel_userrange_to_policydb()
Dcil_policy.c242 static void cil_level_to_policy(FILE *out, struct cil_level *level) in cil_level_to_policy()
251 static int cil_levels_simple_and_equal(struct cil_level *l1, struct cil_level *l2) in cil_levels_simple_and_equal()
Dcil_resolve_ast.c883 usrlvl->level = (struct cil_level*)lvl_datum; in cil_resolve_userlevel()
1702 int cil_resolve_level(struct cil_tree_node *current, struct cil_level *level, void *extra_args) in cil_resolve_level()
1743 lvlrange->low = (struct cil_level*)low_datum; in cil_resolve_levelrange()
1764 lvlrange->high = (struct cil_level*)high_datum; in cil_resolve_levelrange()
2847 struct cil_level *level = NULL; in cil_build_call_args()
3791 rc = cil_resolve_level(node, (struct cil_level*)node->data, args); in __cil_resolve_ast_node()
Dcil_post.c82 static int level_compare(struct cil_level *a, struct cil_level *b) in level_compare()
1797 static int __evaluate_level_expression(struct cil_level *level, struct cil_db *db) in __evaluate_level_expression()
Dcil_build_ast.c3826 struct cil_level *level = NULL; in cil_gen_level()
3861 void cil_destroy_level(struct cil_level *level) in cil_destroy_level()
5438 cil_destroy_level((struct cil_level *)args->arg); in cil_destroy_args()
5690 int cil_fill_level(struct cil_tree_node *curr, struct cil_level *level) in cil_fill_level()
/third_party/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()