Home
last modified time | relevance | path

Searched refs:sepolh (Results 1 – 17 of 17) sorted by relevance

/external/selinux/libsemanage/src/
Dnode_record.c59 return sepol_node_key_create(handle->sepolh, addr, mask, proto, in semanage_node_key_create()
68 return sepol_node_key_extract(handle->sepolh, node, key_ptr); in semanage_node_key_extract()
86 return sepol_node_get_addr(handle->sepolh, node, addr_ptr); in hidden_def()
96 return sepol_node_get_addr_bytes(handle->sepolh, node, addr, addr_sz); in hidden_def()
105 return sepol_node_set_addr(handle->sepolh, node, proto, addr); in hidden_def()
115 return sepol_node_set_addr_bytes(handle->sepolh, node, addr, addr_sz); in hidden_def()
125 return sepol_node_get_mask(handle->sepolh, node, mask_ptr); in hidden_def()
135 return sepol_node_get_mask_bytes(handle->sepolh, node, mask, mask_sz); in hidden_def()
144 return sepol_node_set_mask(handle->sepolh, node, proto, mask); in hidden_def()
154 return sepol_node_set_mask_bytes(handle->sepolh, node, mask, mask_sz); in hidden_def()
[all …]
Dcontext_record.c22 return sepol_context_set_user(handle->sepolh, con, user); in semanage_context_set_user()
36 return sepol_context_set_role(handle->sepolh, con, role); in semanage_context_set_role()
50 return sepol_context_set_type(handle->sepolh, con, type); in semanage_context_set_type()
64 return sepol_context_set_mls(handle->sepolh, con, mls_range); in semanage_context_set_mls()
72 return sepol_context_create(handle->sepolh, con_ptr); in semanage_context_create()
80 return sepol_context_clone(handle->sepolh, con, con_ptr); in semanage_context_clone()
98 return sepol_context_from_string(handle->sepolh, str, con); in hidden_def()
107 return sepol_context_to_string(handle->sepolh, con, str_ptr); in hidden_def()
Duser_base_record.c33 return sepol_user_key_extract(handle->sepolh, user, key); in semanage_user_base_key_extract()
71 return sepol_user_set_name(handle->sepolh, user, name); in semanage_user_base_set_name()
87 return sepol_user_set_mlslevel(handle->sepolh, user, mls_level); in semanage_user_base_set_mlslevel()
102 return sepol_user_set_mlsrange(handle->sepolh, user, mls_range); in semanage_user_base_set_mlsrange()
117 return sepol_user_add_role(handle->sepolh, user, role); in semanage_user_base_add_role()
140 return sepol_user_get_roles(handle->sepolh, user, roles_arr, num_roles); in semanage_user_base_get_roles()
149 return sepol_user_set_roles(handle->sepolh, user, roles_arr, num_roles); in semanage_user_base_set_roles()
157 return sepol_user_create(handle->sepolh, user_ptr); in semanage_user_base_create()
165 return sepol_user_clone(handle->sepolh, user, user_ptr); in semanage_user_base_clone()
Diface_record.c56 return sepol_iface_key_create(handle->sepolh, name, key_ptr); in semanage_iface_key_create()
64 return sepol_iface_key_extract(handle->sepolh, iface, key_ptr); in semanage_iface_key_extract()
90 return sepol_iface_set_name(handle->sepolh, iface, name); in hidden_def()
108 return sepol_iface_set_ifcon(handle->sepolh, iface, con); in hidden_def()
126 return sepol_iface_set_msgcon(handle->sepolh, iface, con); in hidden_def()
136 return sepol_iface_create(handle->sepolh, iface_ptr); in hidden_def()
146 return sepol_iface_clone(handle->sepolh, iface, iface_ptr); in hidden_def()
Dboolean_record.c30 return sepol_bool_key_create(handle->sepolh, name, key); in semanage_bool_key_create()
38 return sepol_bool_key_extract(handle->sepolh, boolean, key); in semanage_bool_key_extract()
89 rc = sepol_bool_set_name(handle->sepolh, boolean, subname); in hidden_def()
118 return sepol_bool_create(handle->sepolh, bool_ptr); in hidden_def()
128 return sepol_bool_clone(handle->sepolh, boolean, bool_ptr); in hidden_def()
Ddatabase_policydb.c130 sepol_policy_file_set_handle(pf, handle->sepolh); in dbase_policydb_cache()
247 if (dbase->rptable->add(handle->sepolh, dbase->policydb, key, data) < 0) in dbase_policydb_add()
263 if (dbase->rptable->set(handle->sepolh, dbase->policydb, key, data) < 0) in dbase_policydb_set()
280 if (dbase->rptable->modify(handle->sepolh, in dbase_policydb_modify()
324 if (dbase->rptable->query(handle->sepolh, in dbase_policydb_query()
340 if (dbase->rptable->exists(handle->sepolh, in dbase_policydb_exists()
356 if (dbase->rptable->count(handle->sepolh, in dbase_policydb_count()
373 if (dbase->rptable->iterate(handle->sepolh, in dbase_policydb_iterate()
415 if (dbase->rptable->count(handle->sepolh, in dbase_policydb_list()
428 if (dbase->rptable->iterate(handle->sepolh, in dbase_policydb_list()
Dport_record.c57 return sepol_port_key_create(handle->sepolh, low, high, proto, key_ptr); in semanage_port_key_create()
65 return sepol_port_key_extract(handle->sepolh, port, key_ptr); in semanage_port_key_extract()
149 return sepol_port_set_con(handle->sepolh, port, con); in hidden_def()
159 return sepol_port_create(handle->sepolh, port_ptr); in hidden_def()
169 return sepol_port_clone(handle->sepolh, port, port_ptr); in hidden_def()
Dhandle.c77 sh->sepolh = sepol_handle_create(); in semanage_handle_create()
78 if (!sh->sepolh) in semanage_handle_create()
80 sepol_msg_set_callback(sh->sepolh, semanage_msg_relay_handler, sh); in semanage_handle_create()
199 return sepol_get_disable_dontaudit(sh->sepolh); in semanage_get_disable_dontaudit()
206 sepol_set_disable_dontaudit(sh->sepolh, disable_dontaudit); in semanage_set_disable_dontaudit()
213 return sepol_get_preserve_tunables(sh->sepolh); in semanage_get_preserve_tunables()
220 sepol_set_preserve_tunables(sh->sepolh, preserve_tunables); in semanage_set_preserve_tunables()
389 sepol_handle_destroy(sh->sepolh); in semanage_handle_destroy()
Ddebug.c97 sepol_handle_t * sepolh, in semanage_msg_relay_handler() argument
111 sh->msg_fname = sepol_msg_get_fname(sepolh); in semanage_msg_relay_handler()
112 sh->msg_channel = sepol_msg_get_channel(sepolh); in semanage_msg_relay_handler()
113 sh->msg_level = sepol_msg_get_level(sepolh); /* XXX should map values */ in semanage_msg_relay_handler()
Ddirect_api.c279 sepol_set_disable_dontaudit(sh->sepolh, 1); in semanage_direct_connect()
281 sepol_set_disable_dontaudit(sh->sepolh, 0); in semanage_direct_connect()
1100 dontaudit_modified = !(sepol_get_disable_dontaudit(sh->sepolh) == 1); in semanage_direct_commit()
1102 dontaudit_modified = (sepol_get_disable_dontaudit(sh->sepolh) == 1); in semanage_direct_commit()
1103 if (sepol_get_disable_dontaudit(sh->sepolh) == 1) { in semanage_direct_commit()
1125 preserve_tunables_modified = !(sepol_get_preserve_tunables(sh->sepolh) == 1); in semanage_direct_commit()
1127 preserve_tunables_modified = (sepol_get_preserve_tunables(sh->sepolh) == 1); in semanage_direct_commit()
1128 if (sepol_get_preserve_tunables(sh->sepolh) == 1) { in semanage_direct_commit()
1230 disable_dontaudit = sepol_get_disable_dontaudit(sh->sepolh); in semanage_direct_commit()
1231 preserve_tunables = sepol_get_preserve_tunables(sh->sepolh); in semanage_direct_commit()
Dseusers_local.c273 if (sepol_mls_check(handle->sepolh, policydb, mls_range) < 0) in validate_handler()
275 if (sepol_mls_contains(handle->sepolh, policydb, in validate_handler()
Dhandle.h56 sepol_handle_t *sepolh; member
Dfcontexts_local.c104 && sepol_context_check(handle->sepolh, policydb, in validate_handler()
Dgenhomedircon.c538 result = sepol_context_from_string(s->h_semanage->sepolh, in check_line()
541 sepol_msg_set_callback(s->h_semanage->sepolh, NULL, NULL); in check_line()
542 result = sepol_context_check(s->h_semanage->sepolh, in check_line()
544 sepol_msg_set_callback(s->h_semanage->sepolh, in check_line()
Duser_record.c37 return sepol_user_key_create(handle->sepolh, name, key); in semanage_user_key_create()
Dmodules.c68 sepol_policy_file_set_handle(pf, sh->sepolh); in parse_module_headers()
Dsemanage_store.c2031 sepol_policy_file_set_handle(pf, sh->sepolh); in semanage_read_policydb()
2072 sepol_policy_file_set_handle(pf, sh->sepolh); in semanage_write_policydb()