Home | History | Annotate | Download | only in src

Lines Matching refs:handle

30 int sepol_user_key_create(sepol_handle_t * handle,
38 ERR(handle, "out of memory, "
59 int sepol_user_key_extract(sepol_handle_t * handle,
64 if (sepol_user_key_create(handle, user->name, key_ptr) < 0) {
65 ERR(handle, "could not extract key from user %s", user->name);
96 int sepol_user_set_name(sepol_handle_t * handle,
102 ERR(handle, "out of memory, could not set name");
121 int sepol_user_set_mlslevel(sepol_handle_t * handle,
127 ERR(handle, "out of memory, "
146 int sepol_user_set_mlsrange(sepol_handle_t * handle,
152 ERR(handle, "out of memory, "
170 int sepol_user_add_role(sepol_handle_t * handle,
194 ERR(handle, "out of memory, could not add role %s", role);
215 int sepol_user_set_roles(sepol_handle_t * handle,
246 ERR(handle, "out of memory, could not allocate roles array for"
260 int sepol_user_get_roles(sepol_handle_t * handle,
279 ERR(handle, "out of memory, could not "
302 int sepol_user_create(sepol_handle_t * handle, sepol_user_t ** user_ptr)
308 ERR(handle, "out of memory, "
326 int sepol_user_clone(sepol_handle_t * handle,
333 if (sepol_user_create(handle, &new_user) < 0)
336 if (sepol_user_set_name(handle, new_user, user->name) < 0)
340 if (sepol_user_add_role(handle, new_user, user->roles[i]) < 0)
345 (sepol_user_set_mlslevel(handle, new_user, user->mls_level) < 0))
349 (sepol_user_set_mlsrange(handle, new_user, user->mls_range) < 0))
356 ERR(handle, "could not clone selinux user record");