Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/src/
Duser_record.c224 char **tmp_roles = NULL; in sepol_user_set_roles() local
229 tmp_roles = (char **)calloc(1, sizeof(char *) * num_roles); in sepol_user_set_roles()
230 if (!tmp_roles) in sepol_user_set_roles()
234 tmp_roles[i] = strdup(roles_arr[i]); in sepol_user_set_roles()
235 if (!tmp_roles[i]) in sepol_user_set_roles()
244 user->roles = tmp_roles; in sepol_user_set_roles()
252 if (tmp_roles) { in sepol_user_set_roles()
254 if (!tmp_roles[i]) in sepol_user_set_roles()
256 free(tmp_roles[i]); in sepol_user_set_roles()
259 free(tmp_roles); in sepol_user_set_roles()
[all …]