• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _SEMANAGE_IBPKEY_INTERNAL_H_
2 #define _SEMANAGE_IBPKEY_INTERNAL_H_
3 
4 #include <semanage/ibpkey_record.h>
5 #include <semanage/ibpkeys_local.h>
6 #include <semanage/ibpkeys_policy.h>
7 #include "database.h"
8 #include "handle.h"
9 #include "dso.h"
10 
11 hidden_proto(semanage_ibpkey_create)
12 hidden_proto(semanage_ibpkey_compare)
13 hidden_proto(semanage_ibpkey_compare2)
14 hidden_proto(semanage_ibpkey_clone)
15 hidden_proto(semanage_ibpkey_free)
16 hidden_proto(semanage_ibpkey_key_extract)
17 hidden_proto(semanage_ibpkey_key_free)
18 hidden_proto(semanage_ibpkey_get_high)
19 hidden_proto(semanage_ibpkey_get_low)
20 hidden_proto(semanage_ibpkey_set_pkey)
21 hidden_proto(semanage_ibpkey_set_range)
22 hidden_proto(semanage_ibpkey_get_con)
23 hidden_proto(semanage_ibpkey_set_con)
24 hidden_proto(semanage_ibpkey_list_local)
25 hidden_proto(semanage_ibpkey_get_subnet_prefix)
26 hidden_proto(semanage_ibpkey_get_subnet_prefix_bytes)
27 hidden_proto(semanage_ibpkey_set_subnet_prefix)
28 hidden_proto(semanage_ibpkey_set_subnet_prefix_bytes)
29 
30 /* PKEY RECORD: method table */
31 extern record_table_t SEMANAGE_IBPKEY_RTABLE;
32 
33 extern int ibpkey_file_dbase_init(semanage_handle_t *handle,
34 				  const char *path_ro,
35 				  const char *path_rw,
36 				  dbase_config_t *dconfig);
37 
38 extern void ibpkey_file_dbase_release(dbase_config_t *dconfig);
39 
40 extern int ibpkey_policydb_dbase_init(semanage_handle_t *handle,
41 				      dbase_config_t *dconfig);
42 
43 extern void ibpkey_policydb_dbase_release(dbase_config_t *dconfig);
44 
45 extern int hidden semanage_ibpkey_validate_local(semanage_handle_t *handle);
46 
47 /* ==== Internal (to ibpkeys) API === */
48 
49 hidden int semanage_ibpkey_compare2_qsort(const semanage_ibpkey_t **ibpkey,
50 					  const semanage_ibpkey_t **ibpkey2);
51 
52 #endif
53