Home
last modified time | relevance | path

Searched refs:semanage_handle_t (Results 1 – 25 of 133) sorted by relevance

123456

/external/selinux/libsemanage/include/semanage/
Dhandle.h31 typedef struct semanage_handle semanage_handle_t; typedef
35 extern semanage_handle_t *semanage_handle_create(void);
41 extern void semanage_handle_destroy(semanage_handle_t *);
54 extern void semanage_select_store(semanage_handle_t * handle, char *path,
58 extern int semanage_reload_policy(semanage_handle_t * handle);
62 extern void semanage_set_reload(semanage_handle_t * handle, int do_reload);
67 extern void semanage_set_rebuild(semanage_handle_t * handle, int do_rebuild);
72 extern int semanage_get_hll_compiler_path(semanage_handle_t *sh, char *lang_ext, char **compiler_pa…
77 extern void semanage_set_create_store(semanage_handle_t * handle, int create_store);
80 extern int semanage_get_disable_dontaudit(semanage_handle_t * handle);
[all …]
Dmodules.h35 extern int semanage_module_install(semanage_handle_t *,
37 extern int semanage_module_install_file(semanage_handle_t *,
39 extern int semanage_module_remove(semanage_handle_t *, char *module_name);
55 extern int semanage_module_extract(semanage_handle_t *sh,
61 extern int semanage_module_list(semanage_handle_t *,
77 extern int semanage_module_info_create(semanage_handle_t *sh,
86 extern int semanage_module_info_destroy(semanage_handle_t *handle,
95 extern int semanage_module_info_get_priority(semanage_handle_t *sh,
103 extern int semanage_module_info_get_name(semanage_handle_t *sh,
111 extern int semanage_module_info_get_lang_ext(semanage_handle_t *sh,
[all …]
Dnode_record.h28 extern int semanage_node_key_create(semanage_handle_t * handle,
33 extern int semanage_node_key_extract(semanage_handle_t * handle,
40 extern int semanage_node_get_addr(semanage_handle_t * handle,
43 extern int semanage_node_get_addr_bytes(semanage_handle_t * handle,
47 extern int semanage_node_set_addr(semanage_handle_t * handle,
51 extern int semanage_node_set_addr_bytes(semanage_handle_t * handle,
56 extern int semanage_node_get_mask(semanage_handle_t * handle,
59 extern int semanage_node_get_mask_bytes(semanage_handle_t * handle,
63 extern int semanage_node_set_mask(semanage_handle_t * handle,
67 extern int semanage_node_set_mask_bytes(semanage_handle_t * handle,
[all …]
Duser_record.h19 extern int semanage_user_key_create(semanage_handle_t * handle,
23 extern int semanage_user_key_extract(semanage_handle_t * handle,
38 extern int semanage_user_set_name(semanage_handle_t * handle,
44 extern int semanage_user_set_prefix(semanage_handle_t * handle,
50 extern int semanage_user_set_mlslevel(semanage_handle_t * handle,
56 extern int semanage_user_set_mlsrange(semanage_handle_t * handle,
63 extern int semanage_user_add_role(semanage_handle_t * handle,
71 extern int semanage_user_get_roles(semanage_handle_t * handle,
76 extern int semanage_user_set_roles(semanage_handle_t * handle,
82 extern int semanage_user_create(semanage_handle_t * handle,
[all …]
Dcontext_record.h17 extern int semanage_context_set_user(semanage_handle_t * handle,
24 extern int semanage_context_set_role(semanage_handle_t * handle,
31 extern int semanage_context_set_type(semanage_handle_t * handle,
38 extern int semanage_context_set_mls(semanage_handle_t * handle,
43 extern int semanage_context_create(semanage_handle_t * handle,
46 extern int semanage_context_clone(semanage_handle_t * handle,
53 extern int semanage_context_from_string(semanage_handle_t * handle,
57 extern int semanage_context_to_string(semanage_handle_t * handle,
Dusers_local.h9 extern int semanage_user_modify_local(semanage_handle_t * handle,
13 extern int semanage_user_del_local(semanage_handle_t * handle,
16 extern int semanage_user_query_local(semanage_handle_t * handle,
20 extern int semanage_user_exists_local(semanage_handle_t * handle,
24 extern int semanage_user_count_local(semanage_handle_t * handle,
27 extern int semanage_user_iterate_local(semanage_handle_t * handle,
32 extern int semanage_user_list_local(semanage_handle_t * handle,
Dibpkeys_local.h9 extern int semanage_ibpkey_modify_local(semanage_handle_t *handle,
13 extern int semanage_ibpkey_del_local(semanage_handle_t *handle,
16 extern int semanage_ibpkey_query_local(semanage_handle_t *handle,
20 extern int semanage_ibpkey_exists_local(semanage_handle_t *handle,
24 extern int semanage_ibpkey_count_local(semanage_handle_t *handle,
27 extern int semanage_ibpkey_iterate_local(semanage_handle_t *handle,
32 extern int semanage_ibpkey_list_local(semanage_handle_t *handle,
Dnodes_local.h9 extern int semanage_node_modify_local(semanage_handle_t * handle,
13 extern int semanage_node_del_local(semanage_handle_t * handle,
16 extern int semanage_node_query_local(semanage_handle_t * handle,
20 extern int semanage_node_exists_local(semanage_handle_t * handle,
24 extern int semanage_node_count_local(semanage_handle_t * handle,
27 extern int semanage_node_iterate_local(semanage_handle_t * handle,
32 extern int semanage_node_list_local(semanage_handle_t * handle,
Dibendports_local.h9 extern int semanage_ibendport_modify_local(semanage_handle_t *handle,
13 extern int semanage_ibendport_del_local(semanage_handle_t *handle,
16 extern int semanage_ibendport_query_local(semanage_handle_t *handle,
20 extern int semanage_ibendport_exists_local(semanage_handle_t *handle,
24 extern int semanage_ibendport_count_local(semanage_handle_t *handle,
27 extern int semanage_ibendport_iterate_local(semanage_handle_t *handle,
32 extern int semanage_ibendport_list_local(semanage_handle_t *handle,
Dinterfaces_local.h9 extern int semanage_iface_modify_local(semanage_handle_t * handle,
13 extern int semanage_iface_del_local(semanage_handle_t * handle,
16 extern int semanage_iface_query_local(semanage_handle_t * handle,
20 extern int semanage_iface_exists_local(semanage_handle_t * handle,
24 extern int semanage_iface_count_local(semanage_handle_t * handle,
27 extern int semanage_iface_iterate_local(semanage_handle_t * handle,
32 extern int semanage_iface_list_local(semanage_handle_t * handle,
Dports_local.h9 extern int semanage_port_modify_local(semanage_handle_t * handle,
13 extern int semanage_port_del_local(semanage_handle_t * handle,
16 extern int semanage_port_query_local(semanage_handle_t * handle,
20 extern int semanage_port_exists_local(semanage_handle_t * handle,
24 extern int semanage_port_count_local(semanage_handle_t * handle,
27 extern int semanage_port_iterate_local(semanage_handle_t * handle,
32 extern int semanage_port_list_local(semanage_handle_t * handle,
Dfcontexts_local.h9 extern int semanage_fcontext_modify_local(semanage_handle_t * handle,
13 extern int semanage_fcontext_del_local(semanage_handle_t * handle,
16 extern int semanage_fcontext_query_local(semanage_handle_t * handle,
20 extern int semanage_fcontext_exists_local(semanage_handle_t * handle,
24 extern int semanage_fcontext_count_local(semanage_handle_t * handle,
27 extern int semanage_fcontext_iterate_local(semanage_handle_t * handle,
33 extern int semanage_fcontext_list_local(semanage_handle_t * handle,
Dbooleans_local.h9 extern int semanage_bool_modify_local(semanage_handle_t * handle,
13 extern int semanage_bool_del_local(semanage_handle_t * handle,
16 extern int semanage_bool_query_local(semanage_handle_t * handle,
20 extern int semanage_bool_exists_local(semanage_handle_t * handle,
24 extern int semanage_bool_count_local(semanage_handle_t * handle,
27 extern int semanage_bool_iterate_local(semanage_handle_t * handle,
32 extern int semanage_bool_list_local(semanage_handle_t * handle,
Dseusers_local.h9 extern int semanage_seuser_modify_local(semanage_handle_t * handle,
13 extern int semanage_seuser_del_local(semanage_handle_t * handle,
16 extern int semanage_seuser_query_local(semanage_handle_t * handle,
20 extern int semanage_seuser_exists_local(semanage_handle_t * handle,
24 extern int semanage_seuser_count_local(semanage_handle_t * handle,
27 extern int semanage_seuser_iterate_local(semanage_handle_t * handle,
32 extern int semanage_seuser_list_local(semanage_handle_t * handle,
/external/selinux/libsemanage/src/
Dsemanage_store.h95 int semanage_check_init(semanage_handle_t *sh, const char *prefix);
105 int semanage_create_store(semanage_handle_t * sh, int create);
111 int semanage_mkdir(semanage_handle_t *sh, const char *path);
113 int semanage_mkpath(semanage_handle_t *sh, const char *path);
115 int semanage_make_sandbox(semanage_handle_t * sh);
117 int semanage_make_final(semanage_handle_t * sh);
119 int semanage_get_cil_paths(semanage_handle_t * sh, semanage_module_info_t *modinfos,
122 int semanage_get_active_modules(semanage_handle_t *sh,
127 int semanage_get_trans_lock(semanage_handle_t * sh);
128 int semanage_get_active_lock(semanage_handle_t * sh);
[all …]
Dhandle.h47 semanage_handle_t * handle, const char *fmt, ...);
122 dbase_config_t * semanage_user_base_dbase_local(semanage_handle_t * handle) in semanage_user_base_dbase_local()
128 dbase_config_t * semanage_user_extra_dbase_local(semanage_handle_t * handle) in semanage_user_extra_dbase_local()
134 dbase_config_t * semanage_user_dbase_local(semanage_handle_t * handle) in semanage_user_dbase_local()
140 dbase_config_t * semanage_port_dbase_local(semanage_handle_t * handle) in semanage_port_dbase_local()
146 dbase_config_t * semanage_ibpkey_dbase_local(semanage_handle_t * handle) in semanage_ibpkey_dbase_local()
152 dbase_config_t * semanage_ibendport_dbase_local(semanage_handle_t * handle) in semanage_ibendport_dbase_local()
158 dbase_config_t * semanage_iface_dbase_local(semanage_handle_t * handle) in semanage_iface_dbase_local()
164 dbase_config_t * semanage_bool_dbase_local(semanage_handle_t * handle) in semanage_bool_dbase_local()
170 dbase_config_t * semanage_fcontext_dbase_local(semanage_handle_t * handle) in semanage_fcontext_dbase_local()
[all …]
Duser_internal.h43 extern int user_base_file_dbase_init(semanage_handle_t * handle,
51 extern int user_extra_file_dbase_init(semanage_handle_t * handle,
59 extern int user_base_policydb_dbase_init(semanage_handle_t * handle,
65 extern int user_join_dbase_init(semanage_handle_t * handle,
80 hidden int semanage_user_base_create(semanage_handle_t * handle,
83 hidden int semanage_user_base_clone(semanage_handle_t * handle,
87 hidden int semanage_user_base_key_extract(semanage_handle_t * handle,
94 hidden int semanage_user_base_set_name(semanage_handle_t * handle,
101 hidden int semanage_user_base_set_mlslevel(semanage_handle_t * handle,
108 hidden int semanage_user_base_set_mlsrange(semanage_handle_t * handle,
[all …]
Dhandle.c63 semanage_handle_t *semanage_handle_create(void) in semanage_handle_create()
65 semanage_handle_t *sh = NULL; in semanage_handle_create()
69 if ((sh = calloc(1, sizeof(semanage_handle_t))) == NULL) in semanage_handle_create()
119 void semanage_set_rebuild(semanage_handle_t * sh, int do_rebuild) in semanage_set_rebuild()
128 void semanage_set_reload(semanage_handle_t * sh, int do_reload) in semanage_set_reload()
137 int semanage_get_hll_compiler_path(semanage_handle_t *sh, in semanage_get_hll_compiler_path()
190 void semanage_set_create_store(semanage_handle_t * sh, int create_store) in semanage_set_create_store()
199 int semanage_get_disable_dontaudit(semanage_handle_t * sh) in semanage_get_disable_dontaudit()
206 void semanage_set_disable_dontaudit(semanage_handle_t * sh, int disable_dontaudit) in semanage_set_disable_dontaudit()
214 int semanage_get_preserve_tunables(semanage_handle_t * sh) in semanage_get_preserve_tunables()
[all …]
Ddatabase_llist.h54 extern int dbase_llist_cache_prepend(semanage_handle_t * handle,
58 extern int dbase_llist_needs_resync(semanage_handle_t * handle,
61 extern int dbase_llist_set_serial(semanage_handle_t * handle,
85 extern int dbase_llist_exists(semanage_handle_t * handle,
89 extern int dbase_llist_add(semanage_handle_t * handle,
93 extern int dbase_llist_set(semanage_handle_t * handle,
97 extern int dbase_llist_modify(semanage_handle_t * handle,
101 extern int dbase_llist_count(semanage_handle_t * handle,
104 extern int dbase_llist_query(semanage_handle_t * handle,
108 extern int dbase_llist_iterate(semanage_handle_t * handle,
[all …]
Dmodules.h29 int semanage_module_install_pp(semanage_handle_t * sh,
31 int semanage_module_install_hll(semanage_handle_t * sh,
33 int semanage_module_upgrade(semanage_handle_t * sh,
35 int semanage_module_upgrade_file(semanage_handle_t * sh,
37 int semanage_module_install_base(semanage_handle_t * sh,
39 int semanage_module_install_base_file(semanage_handle_t * sh,
54 int semanage_module_info_init(semanage_handle_t *sh,
61 int semanage_module_info_clone(semanage_handle_t *sh,
88 int semanage_module_key_init(semanage_handle_t *sh,
106 int semanage_module_get_path(semanage_handle_t *sh,
Dparse_utils.h22 extern int parse_init(semanage_handle_t * handle,
30 extern int parse_open(semanage_handle_t * handle, parse_info_t * info);
39 extern int parse_skip_space(semanage_handle_t * handle, parse_info_t * info);
42 extern int parse_assert_noeof(semanage_handle_t * handle, parse_info_t * info);
46 extern int parse_assert_space(semanage_handle_t * handle, parse_info_t * info);
50 extern int parse_assert_ch(semanage_handle_t * handle,
56 extern int parse_assert_str(semanage_handle_t * handle,
71 int parse_fetch_int(semanage_handle_t * hgandle,
79 extern int parse_fetch_string(semanage_handle_t * handle,
Dmodules.c56 static int parse_module_headers(semanage_handle_t * sh, char *module_data, in parse_module_headers()
88 int semanage_module_install_pp(semanage_handle_t * sh, in semanage_module_install_pp()
107 int semanage_module_install_hll(semanage_handle_t * sh, in semanage_module_install_hll()
126 int semanage_module_install_file(semanage_handle_t * sh, in semanage_module_install_file()
145 int semanage_module_extract(semanage_handle_t * sh, in semanage_module_extract()
165 int semanage_module_upgrade(semanage_handle_t * sh, in semanage_module_upgrade()
175 int semanage_module_upgrade_file(semanage_handle_t * sh, in semanage_module_upgrade_file()
184 int semanage_module_install_base(semanage_handle_t * sh, in semanage_module_install_base()
193 int semanage_module_install_base_file(semanage_handle_t * sh, in semanage_module_install_base_file()
199 int semanage_module_remove(semanage_handle_t * sh, char *module_name) in semanage_module_remove()
[all …]
Dnode_record.c53 int semanage_node_key_create(semanage_handle_t * handle, in semanage_node_key_create()
63 int semanage_node_key_extract(semanage_handle_t * handle, in semanage_node_key_extract()
82 int semanage_node_get_addr(semanage_handle_t * handle, in hidden_def()
91 int semanage_node_get_addr_bytes(semanage_handle_t * handle, in hidden_def()
101 int semanage_node_set_addr(semanage_handle_t * handle, in hidden_def()
110 int semanage_node_set_addr_bytes(semanage_handle_t * handle, in hidden_def()
121 int semanage_node_get_mask(semanage_handle_t * handle, in hidden_def()
130 int semanage_node_get_mask_bytes(semanage_handle_t * handle, in hidden_def()
140 int semanage_node_set_mask(semanage_handle_t * handle, in hidden_def()
149 int semanage_node_set_mask_bytes(semanage_handle_t * handle, in hidden_def()
[all …]
Ddatabase.c9 static int assert_init(semanage_handle_t * handle, dbase_config_t * dconfig) in assert_init()
24 static int enter_ro(semanage_handle_t * handle, dbase_config_t * dconfig) in enter_ro()
49 static inline int exit_ro(semanage_handle_t * handle) in exit_ro()
61 static int enter_rw(semanage_handle_t * handle, dbase_config_t * dconfig) in enter_rw()
82 int dbase_modify(semanage_handle_t * handle, in dbase_modify()
96 int dbase_set(semanage_handle_t * handle, in dbase_set()
110 int dbase_del(semanage_handle_t * handle, in dbase_del()
123 int dbase_query(semanage_handle_t * handle, in dbase_query()
139 int dbase_exists(semanage_handle_t * handle, in dbase_exists()
155 int dbase_count(semanage_handle_t * handle, in dbase_count()
[all …]
Dfcontexts_local.c18 int semanage_fcontext_modify_local(semanage_handle_t * handle, in semanage_fcontext_modify_local()
27 int semanage_fcontext_del_local(semanage_handle_t * handle, in semanage_fcontext_del_local()
35 int semanage_fcontext_query_local(semanage_handle_t * handle, in semanage_fcontext_query_local()
44 int semanage_fcontext_exists_local(semanage_handle_t * handle, in semanage_fcontext_exists_local()
53 int semanage_fcontext_count_local(semanage_handle_t * handle, in semanage_fcontext_count_local()
61 int semanage_fcontext_iterate_local(semanage_handle_t * handle, in semanage_fcontext_iterate_local()
73 int semanage_fcontext_list_local(semanage_handle_t * handle, in hidden_def()
83 semanage_handle_t *handle;
94 semanage_handle_t *handle = arg->handle; in validate_handler()
121 int hidden semanage_fcontext_validate_local(semanage_handle_t * handle, in semanage_fcontext_validate_local()

123456