/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 | ibendport_record.c | 53 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()
|
D | ibpkey_record.c | 53 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()
|
D | database_policydb.c | 130 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()
|
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 | 79 sh->sepolh = sepol_handle_create(); in semanage_handle_create() 80 if (!sh->sepolh) in semanage_handle_create() 82 sepol_msg_set_callback(sh->sepolh, semanage_msg_relay_handler, sh); in semanage_handle_create() 203 return sepol_get_disable_dontaudit(sh->sepolh); in semanage_get_disable_dontaudit() 210 sepol_set_disable_dontaudit(sh->sepolh, disable_dontaudit); in semanage_set_disable_dontaudit() 217 return sepol_get_preserve_tunables(sh->sepolh); in semanage_get_preserve_tunables() 224 sepol_set_preserve_tunables(sh->sepolh, preserve_tunables); in semanage_set_preserve_tunables() 393 sepol_handle_destroy(sh->sepolh); in semanage_handle_destroy()
|
D | boolean_record.c | 32 return sepol_bool_key_create(handle->sepolh, name, key); in semanage_bool_key_create() 40 return sepol_bool_key_extract(handle->sepolh, boolean, key); in semanage_bool_key_extract() 135 rc = sepol_bool_set_name(handle->sepolh, boolean, subname); in hidden_def() 168 return sepol_bool_create(handle->sepolh, bool_ptr); in hidden_def() 178 return sepol_bool_clone(handle->sepolh, boolean, bool_ptr); in hidden_def()
|
D | debug.c | 95 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()
|
D | genhomedircon.c | 566 result = sepol_context_from_string(s->h_semanage->sepolh, in check_line() 569 result = sepol_context_check(s->h_semanage->sepolh, in check_line() 629 sepol_handle_t *sepolh = s->h_semanage->sepolh; in write_contexts() local 631 if (sepol_context_from_string(sepolh, old_context_str, in write_contexts() 636 if (sepol_context_set_user(sepolh, context, user->sename) < 0) { in write_contexts() 641 sepol_context_set_mls(sepolh, context, user->level) < 0) { in write_contexts() 646 sepol_context_set_role(sepolh, context, user->homedir_role) < 0) { in write_contexts() 650 if (sepol_context_to_string(sepolh, context, in write_contexts()
|
D | direct_api.c | 309 sepol_set_disable_dontaudit(sh->sepolh, 1); in semanage_direct_connect() 312 sepol_set_disable_dontaudit(sh->sepolh, 0); in semanage_direct_connect() 440 sepol_policy_file_set_handle(pf, sh->sepolh); in parse_module_headers() 1252 do_rebuild |= !(sepol_get_disable_dontaudit(sh->sepolh) == 1); in semanage_direct_commit() 1255 do_rebuild |= (sepol_get_disable_dontaudit(sh->sepolh) == 1); in semanage_direct_commit() 1261 if (sepol_get_disable_dontaudit(sh->sepolh) == 1) { in semanage_direct_commit() 1283 do_rebuild |= !(sepol_get_preserve_tunables(sh->sepolh) == 1); in semanage_direct_commit() 1286 do_rebuild |= (sepol_get_preserve_tunables(sh->sepolh) == 1); in semanage_direct_commit() 1293 if (sepol_get_preserve_tunables(sh->sepolh) == 1) { in semanage_direct_commit() 1402 disable_dontaudit = sepol_get_disable_dontaudit(sh->sepolh); in semanage_direct_commit() [all …]
|
D | seusers_local.c | 278 if (sepol_mls_check(handle->sepolh, policydb, mls_range) < 0) in validate_handler() 280 if (sepol_mls_contains(handle->sepolh, policydb, in validate_handler()
|
D | fcontexts_local.c | 104 && sepol_context_check(handle->sepolh, policydb, in validate_handler()
|
D | handle.h | 56 sepol_handle_t *sepolh; member
|
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 | 2122 sepol_policy_file_set_handle(pf, sh->sepolh); in semanage_read_policydb() 2165 sepol_policy_file_set_handle(pf, sh->sepolh); in semanage_write_policydb()
|