Lines Matching refs:new_perm
269 perm_datum_t *perm, *new_perm;
275 new_perm = (perm_datum_t *) malloc(sizeof(perm_datum_t));
276 if (!new_perm) {
279 memset(new_perm, 0, sizeof(perm_datum_t));
283 free(new_perm);
287 new_perm->s.value = perm->s.value;
290 ret = hashtab_insert(s->table, new_id, (hashtab_datum_t *) new_perm);
293 free(new_perm);
2633 class_perm_node_t *cur_perm, *new_perm, *tail_perm;
2669 new_perm =
2671 if (!new_perm)
2673 class_perm_node_init(new_perm);
2674 new_perm->class = cur_perm->class;
2675 assert(new_perm->class);
2678 new_perm->data = cur_perm->data;
2681 avrule->perms = new_perm;
2684 tail_perm->next = new_perm;
2685 tail_perm = new_perm;