Home
last modified time | relevance | path

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

/external/selinux/libsepol/src/
Dnodes.c91 sepol_node_t *tmp_record = NULL; in node_to_record() local
93 if (sepol_node_create(handle, &tmp_record) < 0) in node_to_record()
96 sepol_node_set_proto(tmp_record, proto); in node_to_record()
101 if (sepol_node_set_addr_bytes(handle, tmp_record, in node_to_record()
106 if (sepol_node_set_mask_bytes(handle, tmp_record, in node_to_record()
113 if (sepol_node_set_addr_bytes(handle, tmp_record, in node_to_record()
118 if (sepol_node_set_mask_bytes(handle, tmp_record, in node_to_record()
132 if (sepol_node_set_con(handle, tmp_record, tmp_con) < 0) in node_to_record()
136 *record = tmp_record; in node_to_record()
142 sepol_node_free(tmp_record); in node_to_record()
Dbooleans.c63 sepol_bool_t *tmp_record = NULL; in bool_to_record() local
65 if (sepol_bool_create(handle, &tmp_record) < 0) in bool_to_record()
68 if (sepol_bool_set_name(handle, tmp_record, name) < 0) in bool_to_record()
71 sepol_bool_set_value(tmp_record, value); in bool_to_record()
73 *record = tmp_record; in bool_to_record()
78 sepol_bool_free(tmp_record); in bool_to_record()
Dcontext.c249 sepol_context_t *tmp_record = NULL; in context_to_record() local
252 if (sepol_context_create(handle, &tmp_record) < 0) in context_to_record()
255 if (sepol_context_set_user(handle, tmp_record, in context_to_record()
260 if (sepol_context_set_role(handle, tmp_record, in context_to_record()
265 if (sepol_context_set_type(handle, tmp_record, in context_to_record()
274 if (sepol_context_set_mls(handle, tmp_record, mls) < 0) in context_to_record()
279 *record = tmp_record; in context_to_record()
284 sepol_context_free(tmp_record); in context_to_record()
Dusers.c26 sepol_user_t *tmp_record = NULL; in user_to_record() local
33 if (sepol_user_create(handle, &tmp_record) < 0) in user_to_record()
36 if (sepol_user_set_name(handle, tmp_record, name) < 0) in user_to_record()
43 if (sepol_user_add_role(handle, tmp_record, role) < 0) in user_to_record()
72 if (sepol_user_set_mlslevel(handle, tmp_record, str) < 0) { in user_to_record()
90 if (sepol_user_set_mlsrange(handle, tmp_record, str) < 0) { in user_to_record()
97 *record = tmp_record; in user_to_record()
102 sepol_user_free(tmp_record); in user_to_record()
Dinterfaces.c76 sepol_iface_t *tmp_record = NULL; in iface_to_record() local
78 if (sepol_iface_create(handle, &tmp_record) < 0) in iface_to_record()
81 if (sepol_iface_set_name(handle, tmp_record, name) < 0) in iface_to_record()
86 if (sepol_iface_set_ifcon(handle, tmp_record, tmp_con) < 0) in iface_to_record()
93 if (sepol_iface_set_msgcon(handle, tmp_record, tmp_con) < 0) in iface_to_record()
98 *record = tmp_record; in iface_to_record()
104 sepol_iface_free(tmp_record); in iface_to_record()
Dports.c119 sepol_port_t *tmp_record = NULL; in port_to_record() local
121 if (sepol_port_create(handle, &tmp_record) < 0) in port_to_record()
128 sepol_port_set_proto(tmp_record, rec_proto); in port_to_record()
129 sepol_port_set_range(tmp_record, low, high); in port_to_record()
134 if (sepol_port_set_con(handle, tmp_record, tmp_con) < 0) in port_to_record()
138 *record = tmp_record; in port_to_record()
145 sepol_port_free(tmp_record); in port_to_record()