/external/selinux/libsemanage/src/ |
D | node_record.c | 59 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 …]
|
D | context_record.c | 22 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()
|
D | user_base_record.c | 33 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()
|
D | iface_record.c | 56 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()
|
D | boolean_record.c | 30 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()
|
D | database_policydb.c | 130 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()
|
D | port_record.c | 57 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()
|
D | handle.c | 77 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()
|
D | debug.c | 97 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()
|
D | direct_api.c | 279 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()
|
D | seusers_local.c | 273 if (sepol_mls_check(handle->sepolh, policydb, mls_range) < 0) in validate_handler() 275 if (sepol_mls_contains(handle->sepolh, policydb, in validate_handler()
|
D | handle.h | 56 sepol_handle_t *sepolh; member
|
D | fcontexts_local.c | 104 && sepol_context_check(handle->sepolh, policydb, in validate_handler()
|
D | genhomedircon.c | 538 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()
|
D | user_record.c | 37 return sepol_user_key_create(handle->sepolh, name, key); in semanage_user_key_create()
|
D | modules.c | 68 sepol_policy_file_set_handle(pf, sh->sepolh); in parse_module_headers()
|
D | semanage_store.c | 2031 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()
|