• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _SEMANAGE_FCONTEXT_INTERNAL_H_
2 #define _SEMANAGE_FCONTEXT_INTERNAL_H_
3 
4 #include <semanage/fcontext_record.h>
5 #include <semanage/fcontexts_local.h>
6 #include <semanage/fcontexts_policy.h>
7 #include <sepol/policydb.h>
8 #include "database.h"
9 #include "handle.h"
10 #include "dso.h"
11 
12 hidden_proto(semanage_fcontext_key_create)
13     hidden_proto(semanage_fcontext_key_extract)
14     hidden_proto(semanage_fcontext_key_free)
15     hidden_proto(semanage_fcontext_compare)
16     hidden_proto(semanage_fcontext_compare2)
17     hidden_proto(semanage_fcontext_create)
18     hidden_proto(semanage_fcontext_get_expr)
19     hidden_proto(semanage_fcontext_set_expr)
20     hidden_proto(semanage_fcontext_get_type)
21     hidden_proto(semanage_fcontext_get_type_str)
22     hidden_proto(semanage_fcontext_set_type)
23     hidden_proto(semanage_fcontext_get_con)
24     hidden_proto(semanage_fcontext_set_con)
25     hidden_proto(semanage_fcontext_clone)
26     hidden_proto(semanage_fcontext_free)
27     hidden_proto(semanage_fcontext_iterate_local)
28 
29 /* FCONTEXT RECORD: metod table */
30 extern record_table_t SEMANAGE_FCONTEXT_RTABLE;
31 
32 extern int fcontext_file_dbase_init(semanage_handle_t * handle,
33 				    const char *path_ro,
34 				    const char *path_rw,
35 				    dbase_config_t * dconfig);
36 
37 extern void fcontext_file_dbase_release(dbase_config_t * dconfig);
38 
39 extern int hidden semanage_fcontext_validate_local(semanage_handle_t * handle,
40 						   const sepol_policydb_t *
41 						   policydb);
42 
43 #endif
44