Searched refs:tmp_con (Results 1 – 6 of 6) sorted by relevance
/third_party/selinux/libsepol/src/ |
D | interfaces.c | 18 context_struct_t *tmp_con = NULL; in iface_from_record() local 31 &tmp_con, sepol_iface_get_ifcon(record)) < 0) in iface_from_record() 33 context_cpy(&tmp_iface->context[0], tmp_con); in iface_from_record() 34 context_destroy(tmp_con); in iface_from_record() 35 free(tmp_con); in iface_from_record() 36 tmp_con = NULL; in iface_from_record() 40 &tmp_con, sepol_iface_get_msgcon(record)) < 0) in iface_from_record() 42 context_cpy(&tmp_iface->context[1], tmp_con); in iface_from_record() 43 context_destroy(tmp_con); in iface_from_record() 44 free(tmp_con); in iface_from_record() [all …]
|
D | ibendports.c | 20 context_struct_t *tmp_con = NULL; in ibendport_from_record() local 45 if (context_from_record(handle, policydb, &tmp_con, in ibendport_from_record() 48 context_cpy(&tmp_ibendport->context[0], tmp_con); in ibendport_from_record() 49 context_destroy(tmp_con); in ibendport_from_record() 50 free(tmp_con); in ibendport_from_record() 51 tmp_con = NULL; in ibendport_from_record() 64 context_destroy(tmp_con); in ibendport_from_record() 65 free(tmp_con); in ibendport_from_record() 79 sepol_context_t *tmp_con = NULL; in ibendport_to_record() local 91 if (context_to_record(handle, policydb, con, &tmp_con) < 0) in ibendport_to_record() [all …]
|
D | ibpkeys.c | 21 context_struct_t *tmp_con = NULL; in ibpkey_from_record() local 42 if (context_from_record(handle, policydb, &tmp_con, in ibpkey_from_record() 45 context_cpy(&tmp_ibpkey->context[0], tmp_con); in ibpkey_from_record() 46 context_destroy(tmp_con); in ibpkey_from_record() 47 free(tmp_con); in ibpkey_from_record() 48 tmp_con = NULL; in ibpkey_from_record() 61 context_destroy(tmp_con); in ibpkey_from_record() 62 free(tmp_con); in ibpkey_from_record() 73 sepol_context_t *tmp_con = NULL; in ibpkey_to_record() local 85 if (context_to_record(handle, policydb, con, &tmp_con) < 0) in ibpkey_to_record() [all …]
|
D | ports.c | 61 context_struct_t *tmp_con = NULL; in port_from_record() local 88 if (context_from_record(handle, policydb, &tmp_con, in port_from_record() 91 context_cpy(&tmp_port->context[0], tmp_con); in port_from_record() 92 context_destroy(tmp_con); in port_from_record() 93 free(tmp_con); in port_from_record() 94 tmp_con = NULL; in port_from_record() 107 context_destroy(tmp_con); in port_from_record() 108 free(tmp_con); in port_from_record() 125 sepol_context_t *tmp_con = NULL; in port_to_record() local 138 if (context_to_record(handle, policydb, con, &tmp_con) < 0) in port_to_record() [all …]
|
D | nodes.c | 20 context_struct_t *tmp_con = NULL; in node_from_record() local 56 if (context_from_record(handle, policydb, &tmp_con, in node_from_record() 59 context_cpy(&tmp_node->context[0], tmp_con); in node_from_record() 60 context_destroy(tmp_con); in node_from_record() 61 free(tmp_con); in node_from_record() 62 tmp_con = NULL; in node_from_record() 75 context_destroy(tmp_con); in node_from_record() 76 free(tmp_con); in node_from_record() 90 sepol_context_t *tmp_con = NULL; in node_to_record() local 129 if (context_to_record(handle, policydb, con, &tmp_con) < 0) in node_to_record() [all …]
|
D | context_record.c | 203 sepol_context_t *tmp_con = NULL; in sepol_context_from_string() local 210 if (sepol_context_create(handle, &tmp_con) < 0) in sepol_context_from_string() 228 if (sepol_context_set_user(handle, tmp_con, low) < 0) in sepol_context_from_string() 237 if (sepol_context_set_role(handle, tmp_con, low) < 0) in sepol_context_from_string() 243 if (sepol_context_set_type(handle, tmp_con, low) < 0) in sepol_context_from_string() 247 if (sepol_context_set_type(handle, tmp_con, low) < 0) in sepol_context_from_string() 250 if (sepol_context_set_mls(handle, tmp_con, low) < 0) in sepol_context_from_string() 255 *con = tmp_con; in sepol_context_from_string() 266 sepol_context_free(tmp_con); in sepol_context_from_string()
|