Home
last modified time | relevance | path

Searched refs:SEPOL_OK (Results 1 – 25 of 34) sorted by relevance

12

/external/selinux/libsepol/cil/src/
Dcil_binary.c91 return SEPOL_OK; in __cil_get_sepol_user_datum()
102 return SEPOL_OK; in __cil_get_sepol_role_datum()
113 return SEPOL_OK; in __cil_get_sepol_type_datum()
124 return SEPOL_OK; in __cil_get_sepol_class_datum()
135 return SEPOL_OK; in __cil_get_sepol_cat_datum()
146 return SEPOL_OK; in __cil_get_sepol_level_datum()
171 return SEPOL_OK; in __cil_expand_user()
197 return SEPOL_OK; in __cil_expand_role()
223 return SEPOL_OK; in __cil_expand_type()
255 if (rc != SEPOL_OK) { in cil_common_to_policydb()
[all …]
Dandroid.c106 if (rc != SEPOL_OK) { in __extract_attributees_helper()
130 return SEPOL_OK; in __extract_attributees_helper()
151 if (rc != SEPOL_OK) { in cil_extract_attributees()
155 return SEPOL_OK; in cil_extract_attributees()
225 if (rc != SEPOL_OK) { in __cil_attrib_convert_type()
229 return SEPOL_OK; in __cil_attrib_convert_type()
256 if (rc != SEPOL_OK) { in __cil_attrib_swap_symtab_key()
260 return SEPOL_OK; in __cil_attrib_swap_symtab_key()
282 if (rc != SEPOL_OK) in cil_attrib_type_expr()
303 return SEPOL_OK; in cil_attrib_type_expr()
[all …]
Dcil_resolve_ast.c120 if (rc != SEPOL_OK) { in __cil_resolve_perms()
133 if (rc != SEPOL_OK) { in __cil_resolve_perms()
147 return SEPOL_OK; in __cil_resolve_perms()
161 if (rc != SEPOL_OK) { in cil_resolve_classperms()
174 if (rc != SEPOL_OK) { in cil_resolve_classperms()
178 return SEPOL_OK; in cil_resolve_classperms()
190 if (rc != SEPOL_OK) { in cil_resolve_classperms_set()
198 if (rc != SEPOL_OK) { in cil_resolve_classperms_set()
203 return SEPOL_OK; in cil_resolve_classperms_set()
217 if (rc != SEPOL_OK) { in cil_resolve_classperms_list()
[all …]
Dcil_verify.c80 return SEPOL_OK; in __cil_verify_name()
146 return SEPOL_OK; in __cil_verify_syntax()
207 if (rc != SEPOL_OK) { in cil_verify_expr_syntax()
211 return SEPOL_OK; in cil_verify_expr_syntax()
272 return SEPOL_OK; in cil_verify_constraint_leaf_expr_syntax()
316 if (rc != SEPOL_OK) { in cil_verify_constraint_expr_syntax()
321 return SEPOL_OK; in cil_verify_constraint_expr_syntax()
340 if (rc != SEPOL_OK) { in cil_verify_no_self_reference()
346 return SEPOL_OK; in cil_verify_no_self_reference()
369 return SEPOL_OK; in __cil_verify_ranges()
[all …]
Dcil_post.c656 return SEPOL_OK; in __cil_post_db_count_helper()
857 return SEPOL_OK; in __cil_post_db_array_helper()
866 if (rc != SEPOL_OK) { in __evaluate_type_expression()
886 if (rc != SEPOL_OK) goto exit; in __cil_type_to_bitmap()
906 return SEPOL_OK; in __cil_type_to_bitmap()
918 if (rc != SEPOL_OK) { in __evaluate_user_expression()
940 if (rc != SEPOL_OK) { in __cil_user_to_bitmap()
954 return SEPOL_OK; in __cil_user_to_bitmap()
966 if (rc != SEPOL_OK) { in __evaluate_role_expression()
986 if (rc != SEPOL_OK) goto exit; in __cil_role_to_bitmap()
[all …]
Dcil_build_ast.c69 if (rc != SEPOL_OK) { in cil_fill_list()
79 return SEPOL_OK; in cil_fill_list()
114 if (rc != SEPOL_OK) { in cil_gen_node()
119 if (rc != SEPOL_OK) { in cil_gen_node()
130 cil_symtab_get_datum(symtab, (hashtab_key_t)key, &prev) != SEPOL_OK || in cil_gen_node()
136 if (cil_symtab_get_datum(symtab, key, &datum) == SEPOL_OK) { in cil_gen_node()
169 return SEPOL_OK; in cil_gen_node()
204 if (rc != SEPOL_OK) { in cil_gen_block()
215 if (rc != SEPOL_OK) { in cil_gen_block()
219 return SEPOL_OK; in cil_gen_block()
[all …]
Dcil_write_ast.c48 return SEPOL_OK; in __cil_strlist_concat()
61 if (rc != SEPOL_OK) in __cil_unfill_expr_helper()
138 if (rc != SEPOL_OK) in __cil_unfill_expr_helper()
146 if (rc != SEPOL_OK) in __cil_unfill_expr_helper()
151 if (rc != SEPOL_OK) in __cil_unfill_expr_helper()
223 rc = SEPOL_OK; in __cil_unfill_expr_helper()
246 if (rc != SEPOL_OK) in cil_unfill_expr()
253 if (rc != SEPOL_OK) in cil_unfill_expr()
255 rc = SEPOL_OK; in cil_unfill_expr()
276 if (rc != SEPOL_OK) in cil_unfill_level()
[all …]
Dcil_copy_ast.c95 return SEPOL_OK; in cil_copy_node()
113 return SEPOL_OK; in cil_copy_block()
127 return SEPOL_OK; in cil_copy_blockabstract()
142 return SEPOL_OK; in cil_copy_blockinherit()
160 return SEPOL_OK; in cil_copy_policycap()
178 return SEPOL_OK; in cil_copy_perm()
230 return SEPOL_OK; in cil_copy_classmapping()
252 return SEPOL_OK; in cil_copy_class()
267 return SEPOL_OK; in cil_copy_classorder()
291 return SEPOL_OK; in cil_copy_classpermission()
[all …]
Dcil_fqn.c51 int rc = SEPOL_OK; in __cil_fqn_qualify_decls()
79 int rc = SEPOL_OK; in __cil_fqn_qualify_blocks()
113 if (rc != SEPOL_OK) { in __cil_fqn_qualify_blocks()
123 if (rc != SEPOL_OK) { in __cil_fqn_qualify_blocks()
Dcil_find.c83 int rc = SEPOL_OK; in cil_type_matches()
252 return SEPOL_OK; in __add_classes_from_map_perms()
296 int rc = SEPOL_OK; in cil_find_matching_avrule()
320 rc = SEPOL_OK; in cil_find_matching_avrule()
328 rc = SEPOL_OK; in cil_find_matching_avrule()
344 rc = SEPOL_OK; in cil_find_matching_avrule()
352 int rc = SEPOL_OK; in __cil_find_matching_avrule_in_ast()
Dcil_symtab.c57 if (rc != SEPOL_OK) { in cil_symtab_init()
91 if (rc == SEPOL_OK) { in cil_symtab_insert()
124 return SEPOL_OK; in cil_symtab_get_datum()
138 return SEPOL_OK; in __cil_symtab_destroy_helper()
221 return SEPOL_OK; in cil_complex_symtab_insert()
Dcil_parser.c174 return SEPOL_OK; in add_hll_linemark()
212 int rc = SEPOL_OK; in cil_parser()
232 if (rc != SEPOL_OK) { in cil_parser()
307 return SEPOL_OK; in cil_parser()
Dcil_strpool.c81 if (rc != SEPOL_OK) { in cil_strpool_add()
97 return SEPOL_OK; in cil_strpool_entry_destroy()
Dcil.c532 if (rc != SEPOL_OK) { in cil_add_file()
540 rc = SEPOL_OK; in cil_add_file()
562 if (rc != SEPOL_OK) { in cil_compile()
572 if (rc != SEPOL_OK) { in cil_compile()
579 if (rc != SEPOL_OK) { in cil_compile()
586 if (rc != SEPOL_OK ) { in cil_compile()
608 if (rc != SEPOL_OK) { in cil_build_policydb_pdb()
628 if (rc != SEPOL_OK) { in cil_build_policydb()
1054 return SEPOL_OK; in cil_flavor_to_symtab_index()
1387 rc = SEPOL_OK; in cil_userprefixes_to_string()
[all …]
Dcil_tree.c156 return SEPOL_OK; in cil_tree_init()
273 if (rc != SEPOL_OK) { in cil_tree_walk_core()
280 return SEPOL_OK; in cil_tree_walk_core()
285 if (rc != SEPOL_OK) { in cil_tree_walk_core()
293 return SEPOL_OK; in cil_tree_walk_core()
305 return SEPOL_OK; in cil_tree_walk()
310 if (rc != SEPOL_OK) { in cil_tree_walk()
317 if (rc != SEPOL_OK) { in cil_tree_walk()
323 if (rc != SEPOL_OK) { in cil_tree_walk()
329 return SEPOL_OK; in cil_tree_walk()
[all …]
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_copy_ast.c71 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_list()
93 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_list_sublist()
117 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_list_sublist_extra()
168 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_block()
202 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_perm()
205 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_perm()
208 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_perm()
236 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_class()
263 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_common()
299 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_classcommon()
[all …]
Dtest_cil_lexer.c46 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_setup()
64 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next()
71 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next()
78 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next()
85 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next()
92 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next()
Dtest_cil_resolve_ast.c87 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_resolve_name()
146 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_resolve_roleallow()
205 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_resolve_classmapping_anon()
238 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_resolve_classmapping_anon_inmacro()
239 CuAssertIntEquals(tc, SEPOL_OK, rc2); in test_cil_resolve_classmapping_anon_inmacro()
240 CuAssertIntEquals(tc, SEPOL_OK, rc3); in test_cil_resolve_classmapping_anon_inmacro()
274 CuAssertIntEquals(tc, SEPOL_OK, rc2); in test_cil_resolve_classmapping_anon_inmacro_neg()
275 CuAssertIntEquals(tc, SEPOL_OK, rc3); in test_cil_resolve_classmapping_anon_inmacro_neg()
295 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_resolve_classmapping_named()
375 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_resolve_rolebounds()
[all …]
Dtest_cil_list.c73 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_append_item()
108 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_append_item_append()
109 CuAssertIntEquals(tc, SEPOL_OK, rc2); in test_cil_list_append_item_append()
149 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_append_item_append_extra()
150 CuAssertIntEquals(tc, SEPOL_OK, rc2); in test_cil_list_append_item_append_extra()
151 CuAssertIntEquals(tc, SEPOL_OK, rc3); in test_cil_list_append_item_append_extra()
230 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_prepend_item()
259 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_prepend_item_prepend()
Dtest_cil_build_ast.c89 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_parse_to_list()
167 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_set_to_list()
222 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_gen_block()
373 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_gen_blockinherit()
508 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_gen_perm()
509 CuAssertIntEquals(tc, SEPOL_OK, rc1); in test_cil_gen_perm()
510 CuAssertIntEquals(tc, SEPOL_OK, rc2); in test_cil_gen_perm()
627 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_gen_permset()
799 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_gen_perm_nodes()
873 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_fill_permset()
[all …]
Dtest_cil_fqn.c58 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_qualify_name()
74 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_qualify_name_cil_flavor()
Dtest_cil.c74 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_get_symtab_block()
92 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_get_symtab_class()
110 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_get_symtab_root()
/external/selinux/secilc/
Dsecilc.c243 if (rc != SEPOL_OK) { in main()
282 if (rc != SEPOL_OK) { in main()
292 if (rc != SEPOL_OK) { in main()
298 if (rc != SEPOL_OK) { in main()
305 if (rc != SEPOL_OK) { in main()
351 if (rc != SEPOL_OK) { in main()
377 rc = SEPOL_OK; in main()
Dsecil2conf.c154 if (rc != SEPOL_OK) { in main()
164 if (rc != SEPOL_OK) { in main()
184 rc = SEPOL_OK; in main()
/external/selinux/libsepol/src/
Dhashtab.c100 return SEPOL_OK; in hashtab_insert()
133 return SEPOL_OK; in hashtab_remove()
175 return SEPOL_OK; in hashtab_replace()
230 return SEPOL_OK; in hashtab_map()
241 return SEPOL_OK; in hashtab_map()

12