54 lines
1.7 KiB
C
54 lines
1.7 KiB
C
#ifndef _SEMANAGE_NODE_INTERNAL_H_
|
|
#define _SEMANAGE_NODE_INTERNAL_H_
|
|
|
|
#include <semanage/node_record.h>
|
|
#include <semanage/nodes_local.h>
|
|
#include <semanage/nodes_policy.h>
|
|
#include "database.h"
|
|
#include "handle.h"
|
|
#include "dso.h"
|
|
|
|
hidden_proto(semanage_node_create)
|
|
hidden_proto(semanage_node_compare)
|
|
hidden_proto(semanage_node_compare2)
|
|
hidden_proto(semanage_node_clone)
|
|
hidden_proto(semanage_node_free)
|
|
hidden_proto(semanage_node_key_extract)
|
|
hidden_proto(semanage_node_key_free)
|
|
hidden_proto(semanage_node_get_addr)
|
|
hidden_proto(semanage_node_get_addr_bytes)
|
|
hidden_proto(semanage_node_get_mask)
|
|
hidden_proto(semanage_node_get_mask_bytes)
|
|
hidden_proto(semanage_node_get_proto)
|
|
hidden_proto(semanage_node_set_addr)
|
|
hidden_proto(semanage_node_set_addr_bytes)
|
|
hidden_proto(semanage_node_set_mask)
|
|
hidden_proto(semanage_node_set_mask_bytes)
|
|
hidden_proto(semanage_node_set_proto)
|
|
hidden_proto(semanage_node_get_proto_str)
|
|
hidden_proto(semanage_node_get_con)
|
|
hidden_proto(semanage_node_set_con)
|
|
hidden_proto(semanage_node_list_local)
|
|
|
|
/* NODE RECORD: method table */
|
|
extern record_table_t SEMANAGE_NODE_RTABLE;
|
|
|
|
extern int node_file_dbase_init(semanage_handle_t * handle,
|
|
const char *fname, dbase_config_t * dconfig);
|
|
|
|
extern void node_file_dbase_release(dbase_config_t * dconfig);
|
|
|
|
extern int node_policydb_dbase_init(semanage_handle_t * handle,
|
|
dbase_config_t * dconfig);
|
|
|
|
extern void node_policydb_dbase_release(dbase_config_t * dconfig);
|
|
|
|
extern int hidden semanage_node_validate_local(semanage_handle_t * handle);
|
|
|
|
/* ==== Internal (to nodes) API === */
|
|
|
|
hidden int semanage_node_compare2_qsort(const semanage_node_t ** node,
|
|
const semanage_node_t ** node2);
|
|
|
|
#endif
|