Searched refs:cur_perm (Results 1 – 2 of 2) sorted by relevance
1265 class_perm_node_t *cur_perm, *new_perm, *tail_perm = NULL; in copy_avrule_list() local1288 cur_perm = cur->perms; in copy_avrule_list()1290 while (cur_perm) { in copy_avrule_list()1298 module->map[SYM_CLASSES][cur_perm->tclass - 1]; in copy_avrule_list()1304 module->perm_map_len[cur_perm->tclass - 1]; in copy_avrule_list()1306 if (!(cur_perm->data & (1U << i))) in copy_avrule_list()1311 perm_map[cur_perm->tclass - 1][i] - in copy_avrule_list()1316 module->map[SYM_TYPES][cur_perm->data - 1]; in copy_avrule_list()1326 cur_perm = cur_perm->next; in copy_avrule_list()
2592 class_perm_node_t *cur_perm, *new_perm, *tail_perm; in copy_neverallow() local2625 cur_perm = source_rule->perms; in copy_neverallow()2627 while (cur_perm) { in copy_neverallow()2633 new_perm->tclass = cur_perm->tclass; in copy_neverallow()2637 new_perm->data = cur_perm->data; in copy_neverallow()2645 cur_perm = cur_perm->next; in copy_neverallow()2667 cur_perm = avrule->perms; in copy_neverallow()2668 while (cur_perm) { in copy_neverallow()2669 tail_perm = cur_perm->next; in copy_neverallow()2670 free(cur_perm); in copy_neverallow()[all …]