Lines Matching refs:handle
33 int sepol_context_set_user(sepol_handle_t * handle,
39 ERR(handle, "out of memory, could not set "
60 int sepol_context_set_role(sepol_handle_t * handle,
66 ERR(handle, "out of memory, could not set "
86 int sepol_context_set_type(sepol_handle_t * handle,
92 ERR(handle, "out of memory, could not set "
112 int sepol_context_set_mls(sepol_handle_t * handle,
118 ERR(handle, "out of memory, could not set "
130 int sepol_context_create(sepol_handle_t * handle, sepol_context_t ** con_ptr)
137 ERR(handle, "out of memory, could not " "create context\n");
152 int sepol_context_clone(sepol_handle_t * handle,
163 if (sepol_context_create(handle, &new_con) < 0)
182 ERR(handle, "out of memory");
185 ERR(handle, "could not clone context record");
208 int sepol_context_from_string(sepol_handle_t * handle,
220 if (sepol_context_create(handle, &tmp_con) < 0)
226 ERR(handle, "out of memory");
238 if (sepol_context_set_user(handle, tmp_con, low) < 0)
247 if (sepol_context_set_role(handle, tmp_con, low) < 0)
253 if (sepol_context_set_type(handle, tmp_con, low) < 0)
257 if (sepol_context_set_type(handle, tmp_con, low) < 0)
260 if (sepol_context_set_mls(handle, tmp_con, low) < 0)
271 ERR(handle, "malformed context \"%s\"", str);
274 ERR(handle, "could not construct context from string");
282 int sepol_context_to_string(sepol_handle_t * handle,
302 ERR(handle, "print error");
309 ERR(handle, "print error");
318 ERR(handle, "out of memory");
321 ERR(handle, "could not convert context to string");