1 #ifndef _SEMANAGE_IBENDPORT_INTERNAL_H_ 2 #define _SEMANAGE_IBENDPORT_INTERNAL_H_ 3 4 #include <semanage/ibendport_record.h> 5 #include <semanage/ibendports_local.h> 6 #include <semanage/ibendports_policy.h> 7 #include "database.h" 8 #include "handle.h" 9 10 /* IBENDPORT RECORD: method table */ 11 extern record_table_t SEMANAGE_IBENDPORT_RTABLE; 12 13 extern int ibendport_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 ibendport_file_dbase_release(dbase_config_t *dconfig); 19 20 extern int ibendport_policydb_dbase_init(semanage_handle_t *handle, 21 dbase_config_t *dconfig); 22 23 extern void ibendport_policydb_dbase_release(dbase_config_t *dconfig); 24 25 extern int semanage_ibendport_validate_local(semanage_handle_t *handle); 26 27 /* ==== Internal (to ibendports) API === */ 28 29 int semanage_ibendport_compare2_qsort(const semanage_ibendport_t **ibendport, 30 const semanage_ibendport_t **ibendport2); 31 32 #endif 33