Home
last modified time | relevance | path

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

/external/libsepol/src/
Dcontext_record.c156 sepol_context_t *new_con = NULL; in hidden_def() local
163 if (sepol_context_create(handle, &new_con) < 0) in hidden_def()
166 if (!(new_con->user = strdup(con->user))) in hidden_def()
169 if (!(new_con->role = strdup(con->role))) in hidden_def()
172 if (!(new_con->type = strdup(con->type))) in hidden_def()
175 if (con->mls && !(new_con->mls = strdup(con->mls))) in hidden_def()
178 *con_ptr = new_con; in hidden_def()
186 sepol_context_free(new_con); in hidden_def()
Dexpand.c285 constraint_node_t *new_con = NULL, *last_new_con = NULL; in constraint_node_clone() local
290 new_con = in constraint_node_clone()
292 if (!new_con) { in constraint_node_clone()
295 memset(new_con, 0, sizeof(constraint_node_t)); in constraint_node_clone()
296 new_con->permissions = src->permissions; in constraint_node_clone()
338 new_con->expr = new_expr; in constraint_node_clone()
344 *dst = new_con; in constraint_node_clone()
346 last_new_con->next = new_con; in constraint_node_clone()
348 last_new_con = new_con; in constraint_node_clone()
355 if (new_con) in constraint_node_clone()
[all …]