• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _SEMANAGE_PORT_INTERNAL_H_
2 #define _SEMANAGE_PORT_INTERNAL_H_
3 
4 #include <semanage/port_record.h>
5 #include <semanage/ports_local.h>
6 #include <semanage/ports_policy.h>
7 #include "database.h"
8 #include "handle.h"
9 
10 /* PORT RECORD: method table */
11 extern record_table_t SEMANAGE_PORT_RTABLE;
12 
13 extern int port_file_dbase_init(semanage_handle_t * handle,
14 				const char *path_ro,
15 				const char *path_rw,
16 				dbase_config_t * dconfig);
17 
18 extern void port_file_dbase_release(dbase_config_t * dconfig);
19 
20 extern int port_policydb_dbase_init(semanage_handle_t * handle,
21 				    dbase_config_t * dconfig);
22 
23 extern void port_policydb_dbase_release(dbase_config_t * dconfig);
24 
25 extern int semanage_port_validate_local(semanage_handle_t * handle);
26 
27 /* ==== Internal (to ports) API === */
28 
29  int semanage_port_compare2_qsort(const semanage_port_t ** port,
30 					const semanage_port_t ** port2);
31 
32 #endif
33