Lines Matching refs:new_perm
193 perm_datum_t *perm, *new_perm;
199 new_perm = (perm_datum_t *) malloc(sizeof(perm_datum_t));
200 if (!new_perm) {
203 memset(new_perm, 0, sizeof(perm_datum_t));
207 free(new_perm);
211 new_perm->s.value = perm->s.value;
214 ret = hashtab_insert(s->table, new_id, (hashtab_datum_t *) new_perm);
217 free(new_perm);
2599 class_perm_node_t *cur_perm, *new_perm, *tail_perm;
2636 new_perm =
2638 if (!new_perm)
2640 class_perm_node_init(new_perm);
2641 new_perm->tclass = cur_perm->tclass;
2642 assert(new_perm->tclass);
2645 new_perm->data = cur_perm->data;
2648 avrule->perms = new_perm;
2651 tail_perm->next = new_perm;
2652 tail_perm = new_perm;