• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _SEMANAGE_BOOLEAN_INTERNAL_H_
2 #define _SEMANAGE_BOOLEAN_INTERNAL_H_
3 
4 #include <semanage/boolean_record.h>
5 #include <semanage/booleans_local.h>
6 #include <semanage/booleans_policy.h>
7 #include <semanage/booleans_active.h>
8 #include "database.h"
9 #include "handle.h"
10 #include "dso.h"
11 
12 hidden_proto(semanage_bool_clone)
13     hidden_proto(semanage_bool_compare)
14     hidden_proto(semanage_bool_compare2)
15     hidden_proto(semanage_bool_create)
16     hidden_proto(semanage_bool_free)
17     hidden_proto(semanage_bool_get_name)
18     hidden_proto(semanage_bool_get_value)
19     hidden_proto(semanage_bool_key_extract)
20     hidden_proto(semanage_bool_key_free)
21     hidden_proto(semanage_bool_set_name)
22     hidden_proto(semanage_bool_set_value)
23 
24 /* BOOL RECORD: metod table */
25 extern record_table_t SEMANAGE_BOOL_RTABLE;
26 
27 extern int bool_file_dbase_init(semanage_handle_t * handle,
28 				const char *path_ro,
29 				const char *path_rw,
30 				dbase_config_t * dconfig);
31 
32 extern void bool_file_dbase_release(dbase_config_t * dconfig);
33 
34 extern int bool_policydb_dbase_init(semanage_handle_t * handle,
35 				    dbase_config_t * dconfig);
36 
37 extern void bool_policydb_dbase_release(dbase_config_t * dconfig);
38 
39 extern int bool_activedb_dbase_init(semanage_handle_t * handle,
40 				    dbase_config_t * dconfig);
41 
42 extern void bool_activedb_dbase_release(dbase_config_t * dconfig);
43 
44 #endif
45