Lines Matching refs:new_perm
193 perm_datum_t *perm, *new_perm; in perm_copy_callback() local
199 new_perm = (perm_datum_t *) malloc(sizeof(perm_datum_t)); in perm_copy_callback()
200 if (!new_perm) { in perm_copy_callback()
203 memset(new_perm, 0, sizeof(perm_datum_t)); in perm_copy_callback()
207 free(new_perm); in perm_copy_callback()
211 new_perm->s.value = perm->s.value; in perm_copy_callback()
214 ret = hashtab_insert(s->table, new_id, (hashtab_datum_t *) new_perm); in perm_copy_callback()
217 free(new_perm); in perm_copy_callback()
2611 class_perm_node_t *cur_perm, *new_perm, *tail_perm; in copy_neverallow() local
2648 new_perm = in copy_neverallow()
2650 if (!new_perm) in copy_neverallow()
2652 class_perm_node_init(new_perm); in copy_neverallow()
2653 new_perm->tclass = cur_perm->tclass; in copy_neverallow()
2654 assert(new_perm->tclass); in copy_neverallow()
2657 new_perm->data = cur_perm->data; in copy_neverallow()
2660 avrule->perms = new_perm; in copy_neverallow()
2663 tail_perm->next = new_perm; in copy_neverallow()
2664 tail_perm = new_perm; in copy_neverallow()