Lines Matching refs:sepolicy

43     } sepolicy;  member
93 int bit_pos = get_attr_bit(global_state.sepolicy.pdb, *attributes); in ebitmap_attribute_assertion_init()
159 int rc = sepol_context_from_string(global_state.sepolicy.handle, context, in validate()
166 rc = sepol_context_check(global_state.sepolicy.handle, in validate()
167 global_state.sepolicy.sdb, ctx); in validate()
176 res = !is_type_of_attribute_set(global_state.sepolicy.pdb, type_name, in validate()
213 if (global_state.sepolicy.file) { in cleanup()
214 fclose(global_state.sepolicy.file); in cleanup()
217 if (global_state.sepolicy.sdb) { in cleanup()
218 sepol_policydb_free(global_state.sepolicy.sdb); in cleanup()
221 if (global_state.sepolicy.pf) { in cleanup()
222 sepol_policy_file_free(global_state.sepolicy.pf); in cleanup()
225 if (global_state.sepolicy.handle) { in cleanup()
226 sepol_handle_destroy(global_state.sepolicy.handle); in cleanup()
233 struct selabel_handle *sehnd = global_state.sepolicy.sehnd[i]; in cleanup()
250 global_state.sepolicy.sehnd[i] = selabel_open(backend, opts, 2); in do_compare_and_die_on_error()
251 if (!global_state.sepolicy.sehnd[i]) { in do_compare_and_die_on_error()
257 result = selabel_cmp(global_state.sepolicy.sehnd[0], global_state.sepolicy.sehnd[1]); in do_compare_and_die_on_error()
278 global_state.sepolicy.file = fopen(sepolicy_file, "r"); in do_fc_check_and_die_on_error()
279 if (!global_state.sepolicy.file) { in do_fc_check_and_die_on_error()
284 global_state.sepolicy.handle = sepol_handle_create(); in do_fc_check_and_die_on_error()
285 if (!global_state.sepolicy.handle) { in do_fc_check_and_die_on_error()
290 if (sepol_policy_file_create(&global_state.sepolicy.pf) < 0) { in do_fc_check_and_die_on_error()
295 sepol_policy_file_set_fp(global_state.sepolicy.pf, global_state.sepolicy.file); in do_fc_check_and_die_on_error()
296 sepol_policy_file_set_handle(global_state.sepolicy.pf, global_state.sepolicy.handle); in do_fc_check_and_die_on_error()
298 int rc = sepol_policydb_create(&global_state.sepolicy.sdb); in do_fc_check_and_die_on_error()
304 rc = sepol_policydb_read(global_state.sepolicy.sdb, global_state.sepolicy.pf); in do_fc_check_and_die_on_error()
323 global_state.sepolicy.sehnd[0] = selabel_open(backend, opts, 2); in do_fc_check_and_die_on_error()
324 if (!global_state.sepolicy.sehnd[0]) { in do_fc_check_and_die_on_error()