Home
last modified time | relevance | path

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

/external/selinux/libsepol/src/
Droles.c28 char **tmp_roles = (char **)malloc(tmp_nroles * sizeof(char *)); in sepol_role_list() local
31 if (!tmp_roles) in sepol_role_list()
35 tmp_roles[i] = strdup(policydb->p_role_val_to_name[i]); in sepol_role_list()
36 if (!tmp_roles[i]) in sepol_role_list()
41 *roles = tmp_roles; in sepol_role_list()
48 ptr = tmp_roles; in sepol_role_list()
51 free(tmp_roles); in sepol_role_list()
Duser_record.c231 char **tmp_roles = NULL; in hidden_def() local
236 tmp_roles = (char **)calloc(1, sizeof(char *) * num_roles); in hidden_def()
237 if (!tmp_roles) in hidden_def()
241 tmp_roles[i] = strdup(roles_arr[i]); in hidden_def()
242 if (!tmp_roles[i]) in hidden_def()
251 user->roles = tmp_roles; in hidden_def()
259 if (tmp_roles) { in hidden_def()
261 if (!tmp_roles[i]) in hidden_def()
263 free(tmp_roles[i]); in hidden_def()
266 free(tmp_roles); in hidden_def()
[all …]