Searched refs:new_con (Results 1 – 2 of 2) sorted by relevance
148 sepol_context_t *new_con = NULL; in sepol_context_clone() local155 if (sepol_context_create(handle, &new_con) < 0) in sepol_context_clone()158 if (!(new_con->user = strdup(con->user))) in sepol_context_clone()161 if (!(new_con->role = strdup(con->role))) in sepol_context_clone()164 if (!(new_con->type = strdup(con->type))) in sepol_context_clone()167 if (con->mls && !(new_con->mls = strdup(con->mls))) in sepol_context_clone()170 *con_ptr = new_con; in sepol_context_clone()178 sepol_context_free(new_con); in sepol_context_clone()
319 constraint_node_t *new_con = NULL, *last_new_con = NULL; in constraint_node_clone() local324 new_con = in constraint_node_clone()326 if (!new_con) { in constraint_node_clone()329 memset(new_con, 0, sizeof(constraint_node_t)); in constraint_node_clone()330 new_con->permissions = src->permissions; in constraint_node_clone()386 new_con->expr = new_expr; in constraint_node_clone()392 *dst = new_con; in constraint_node_clone()394 last_new_con->next = new_con; in constraint_node_clone()396 last_new_con = new_con; in constraint_node_clone()403 if (new_con) in constraint_node_clone()[all …]