Lines Matching refs:new_perm
225 perm_datum_t *perm, *new_perm; in perm_copy_callback() local
231 new_perm = (perm_datum_t *) malloc(sizeof(perm_datum_t)); in perm_copy_callback()
232 if (!new_perm) { in perm_copy_callback()
235 memset(new_perm, 0, sizeof(perm_datum_t)); in perm_copy_callback()
239 free(new_perm); in perm_copy_callback()
243 new_perm->s.value = perm->s.value; in perm_copy_callback()
246 ret = hashtab_insert(s->table, new_id, (hashtab_datum_t) new_perm); in perm_copy_callback()
249 free(new_perm); in perm_copy_callback()
2615 class_perm_node_t *cur_perm, *new_perm, *tail_perm; in copy_neverallow() local
2652 new_perm = in copy_neverallow()
2654 if (!new_perm) in copy_neverallow()
2656 class_perm_node_init(new_perm); in copy_neverallow()
2657 new_perm->tclass = cur_perm->tclass; in copy_neverallow()
2658 assert(new_perm->tclass); in copy_neverallow()
2661 new_perm->data = cur_perm->data; in copy_neverallow()
2664 avrule->perms = new_perm; in copy_neverallow()
2667 tail_perm->next = new_perm; in copy_neverallow()
2668 tail_perm = new_perm; in copy_neverallow()