Home
last modified time | relevance | path

Searched refs:tmp_con (Results 1 – 6 of 6) sorted by relevance

/external/selinux/libsepol/src/
Dinterfaces.c18 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 …]
Dibendports.c20 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 …]
Dibpkeys.c21 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 …]
Dports.c61 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 …]
Dnodes.c20 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 …]
Dcontext_record.c214 sepol_context_t *tmp_con = NULL; in hidden_def() local
221 if (sepol_context_create(handle, &tmp_con) < 0) in hidden_def()
239 if (sepol_context_set_user(handle, tmp_con, low) < 0) in hidden_def()
248 if (sepol_context_set_role(handle, tmp_con, low) < 0) in hidden_def()
254 if (sepol_context_set_type(handle, tmp_con, low) < 0) in hidden_def()
258 if (sepol_context_set_type(handle, tmp_con, low) < 0) in hidden_def()
261 if (sepol_context_set_mls(handle, tmp_con, low) < 0) in hidden_def()
266 *con = tmp_con; in hidden_def()
277 sepol_context_free(tmp_con); in hidden_def()