Home
last modified time | relevance | path

Searched refs:tmp_record (Results 1 – 8 of 8) 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()
Dibendports.c80 sepol_ibendport_t *tmp_record = NULL; in ibendport_to_record() local
82 if (sepol_ibendport_create(handle, &tmp_record) < 0) in ibendport_to_record()
85 if (sepol_ibendport_set_ibdev_name(handle, tmp_record, in ibendport_to_record()
89 sepol_ibendport_set_port(tmp_record, port); in ibendport_to_record()
94 if (sepol_ibendport_set_con(handle, tmp_record, tmp_con) < 0) in ibendport_to_record()
98 *record = tmp_record; in ibendport_to_record()
104 sepol_ibendport_free(tmp_record); in ibendport_to_record()
Dcontext.c248 sepol_context_t *tmp_record = NULL; in context_to_record() local
251 if (sepol_context_create(handle, &tmp_record) < 0) in context_to_record()
254 if (sepol_context_set_user(handle, tmp_record, in context_to_record()
259 if (sepol_context_set_role(handle, tmp_record, in context_to_record()
264 if (sepol_context_set_type(handle, tmp_record, in context_to_record()
273 if (sepol_context_set_mls(handle, tmp_record, mls) < 0) in context_to_record()
278 *record = tmp_record; in context_to_record()
283 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()
42 if (sepol_user_add_role(handle, tmp_record, role) < 0) in user_to_record()
70 if (sepol_user_set_mlslevel(handle, tmp_record, str) < 0) { in user_to_record()
88 if (sepol_user_set_mlsrange(handle, tmp_record, str) < 0) { in user_to_record()
95 *record = tmp_record; in user_to_record()
100 sepol_user_free(tmp_record); in user_to_record()
Dibpkeys.c74 sepol_ibpkey_t *tmp_record = NULL; in ibpkey_to_record() local
76 if (sepol_ibpkey_create(handle, &tmp_record) < 0) in ibpkey_to_record()
79 sepol_ibpkey_set_subnet_prefix_bytes(tmp_record, in ibpkey_to_record()
82 sepol_ibpkey_set_range(tmp_record, ibpkey->u.ibpkey.low_pkey, in ibpkey_to_record()
88 if (sepol_ibpkey_set_con(handle, tmp_record, tmp_con) < 0) in ibpkey_to_record()
92 *record = tmp_record; in ibpkey_to_record()
98 sepol_ibpkey_free(tmp_record); in ibpkey_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.c126 sepol_port_t *tmp_record = NULL; in port_to_record() local
128 if (sepol_port_create(handle, &tmp_record) < 0) in port_to_record()
135 sepol_port_set_proto(tmp_record, rec_proto); in port_to_record()
136 sepol_port_set_range(tmp_record, low, high); in port_to_record()
141 if (sepol_port_set_con(handle, tmp_record, tmp_con) < 0) in port_to_record()
145 *record = tmp_record; in port_to_record()
152 sepol_port_free(tmp_record); in port_to_record()