Home
last modified time | relevance | path

Searched refs:sepolh (Results 1 – 19 of 19) 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()
Dibendport_record.c53 return sepol_ibendport_key_create(handle->sepolh, ibdev_name, port, key_ptr); in semanage_ibendport_key_create()
60 return sepol_ibendport_key_extract(handle->sepolh, ibendport, key_ptr); in semanage_ibendport_key_extract()
76 return sepol_ibendport_get_ibdev_name(handle->sepolh, ibendport, ibdev_name_ptr); in hidden_def()
85 return sepol_ibendport_set_ibdev_name(handle->sepolh, ibendport, ibdev_name); in hidden_def()
115 return sepol_ibendport_set_con(handle->sepolh, ibendport, con); in hidden_def()
123 return sepol_ibendport_create(handle->sepolh, ibendport_ptr); in hidden_def()
132 return sepol_ibendport_clone(handle->sepolh, ibendport, ibendport_ptr); in hidden_def()
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()
Dibpkey_record.c53 return sepol_ibpkey_key_create(handle->sepolh, subnet_prefix, low, high, key_ptr); in semanage_ibpkey_key_create()
60 return sepol_ibpkey_key_extract(handle->sepolh, ibpkey, key_ptr); in semanage_ibpkey_key_extract()
76 return sepol_ibpkey_get_subnet_prefix(handle->sepolh, ibpkey, subnet_prefix_ptr); in hidden_def()
92 return sepol_ibpkey_set_subnet_prefix(handle->sepolh, ibpkey, subnet_prefix); in hidden_def()
143 return sepol_ibpkey_set_con(handle->sepolh, ibpkey, con); in hidden_def()
151 return sepol_ibpkey_create(handle->sepolh, ibpkey_ptr); in hidden_def()
160 return sepol_ibpkey_clone(handle->sepolh, ibpkey, ibpkey_ptr); in hidden_def()
Ddatabase_policydb.c130 sepol_policy_file_set_handle(pf, handle->sepolh); in dbase_policydb_cache()
246 if (dbase->rptable->add(handle->sepolh, dbase->policydb, key, data) < 0) in dbase_policydb_add()
262 if (dbase->rptable->set(handle->sepolh, dbase->policydb, key, data) < 0) in dbase_policydb_set()
279 if (dbase->rptable->modify(handle->sepolh, in dbase_policydb_modify()
318 if (dbase->rptable->query(handle->sepolh, in dbase_policydb_query()
334 if (dbase->rptable->exists(handle->sepolh, in dbase_policydb_exists()
350 if (dbase->rptable->count(handle->sepolh, in dbase_policydb_count()
367 if (dbase->rptable->iterate(handle->sepolh, in dbase_policydb_iterate()
409 if (dbase->rptable->count(handle->sepolh, in dbase_policydb_list()
422 if (dbase->rptable->iterate(handle->sepolh, in dbase_policydb_list()
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()
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.c95 sepol_handle_t * sepolh, in semanage_msg_relay_handler() argument
109 sh->msg_fname = sepol_msg_get_fname(sepolh); in semanage_msg_relay_handler()
110 sh->msg_channel = sepol_msg_get_channel(sepolh); in semanage_msg_relay_handler()
111 sh->msg_level = sepol_msg_get_level(sepolh); /* XXX should map values */ in semanage_msg_relay_handler()
Dgenhomedircon.c563 result = sepol_context_from_string(s->h_semanage->sepolh, in check_line()
566 result = sepol_context_check(s->h_semanage->sepolh, in check_line()
626 sepol_handle_t *sepolh = s->h_semanage->sepolh; in write_contexts() local
628 if (sepol_context_from_string(sepolh, old_context_str, in write_contexts()
633 if (sepol_context_set_user(sepolh, context, user->sename) < 0) { in write_contexts()
638 sepol_context_set_mls(sepolh, context, user->level) < 0) { in write_contexts()
643 sepol_context_set_role(sepolh, context, user->homedir_role) < 0) { in write_contexts()
647 if (sepol_context_to_string(sepolh, context, in write_contexts()
Ddirect_api.c309 sepol_set_disable_dontaudit(sh->sepolh, 1); in semanage_direct_connect()
311 sepol_set_disable_dontaudit(sh->sepolh, 0); in semanage_direct_connect()
421 sepol_policy_file_set_handle(pf, sh->sepolh); in parse_module_headers()
1218 do_rebuild |= !(sepol_get_disable_dontaudit(sh->sepolh) == 1); in semanage_direct_commit()
1220 do_rebuild |= (sepol_get_disable_dontaudit(sh->sepolh) == 1); in semanage_direct_commit()
1221 if (sepol_get_disable_dontaudit(sh->sepolh) == 1) { in semanage_direct_commit()
1243 do_rebuild |= !(sepol_get_preserve_tunables(sh->sepolh) == 1); in semanage_direct_commit()
1245 do_rebuild |= (sepol_get_preserve_tunables(sh->sepolh) == 1); in semanage_direct_commit()
1246 if (sepol_get_preserve_tunables(sh->sepolh) == 1) { in semanage_direct_commit()
1370 disable_dontaudit = sepol_get_disable_dontaudit(sh->sepolh); in semanage_direct_commit()
[all …]
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()
Dfcontexts_local.c104 && sepol_context_check(handle->sepolh, policydb, in validate_handler()
Dhandle.h56 sepol_handle_t *sepolh; member
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.c2076 sepol_policy_file_set_handle(pf, sh->sepolh); in semanage_read_policydb()
2118 sepol_policy_file_set_handle(pf, sh->sepolh); in semanage_write_policydb()