Lines Matching refs:handle
27 int sepol_iface_key_create(sepol_handle_t * handle,
35 ERR(handle, "out of memory, could not create interface key");
55 int sepol_iface_key_extract(sepol_handle_t * handle,
60 if (sepol_iface_key_create(handle, iface->name, key_ptr) < 0) {
61 ERR(handle, "could not extract key from "
89 int sepol_iface_create(sepol_handle_t * handle, sepol_iface_t ** iface)
96 ERR(handle, "out of memory, could not create "
120 int sepol_iface_set_name(sepol_handle_t * handle,
126 ERR(handle, "out of memory, " "could not set interface name");
145 int sepol_iface_set_ifcon(sepol_handle_t * handle,
151 if (sepol_context_clone(handle, con, &newcon) < 0) {
152 ERR(handle, "out of memory, could not set interface context");
172 int sepol_iface_set_msgcon(sepol_handle_t * handle,
177 if (sepol_context_clone(handle, con, &newcon) < 0) {
178 ERR(handle, "out of memory, could not set message context");
190 int sepol_iface_clone(sepol_handle_t * handle,
195 if (sepol_iface_create(handle, &new_iface) < 0)
198 if (sepol_iface_set_name(handle, new_iface, iface->name) < 0)
203 (handle, iface->netif_con, &new_iface->netif_con) < 0))
208 (handle, iface->netmsg_con, &new_iface->netmsg_con) < 0))
215 ERR(handle, "could not clone interface record");