• Home
  • Raw
  • Download

Lines Matching refs:cn

192 			      cond_node_t * cn)  in cond_node_search()  argument
195 cond_node_t *result = cond_node_find(p, cn, list, &was_created); in cond_node_search()
344 int cond_normalize_expr(policydb_t * p, cond_node_t * cn) in cond_normalize_expr() argument
353 cn->nbools = 0; in cond_normalize_expr()
355 memset(cn->bool_ids, 0, sizeof(cn->bool_ids)); in cond_normalize_expr()
356 cn->expr_pre_comp = 0x0; in cond_normalize_expr()
360 e = cn->expr; in cond_normalize_expr()
376 tmp = cn->true_list; in cond_normalize_expr()
377 cn->true_list = cn->false_list; in cond_normalize_expr()
378 cn->false_list = tmp; in cond_normalize_expr()
379 tmp2 = cn->avtrue_list; in cond_normalize_expr()
380 cn->avtrue_list = cn->avfalse_list; in cond_normalize_expr()
381 cn->avfalse_list = tmp2; in cond_normalize_expr()
388 for (e = cn->expr; e != NULL; e = e->next) { in cond_normalize_expr()
392 if (!bool_present(e->bool, cn->bool_ids, cn->nbools)) { in cond_normalize_expr()
394 if (cn->nbools < COND_MAX_BOOLS) in cond_normalize_expr()
395 cn->bool_ids[cn->nbools++] = e->bool; in cond_normalize_expr()
397 cn->nbools++; in cond_normalize_expr()
406 if (cn->nbools <= COND_MAX_BOOLS) { in cond_normalize_expr()
408 for (i = 0; i < cn->nbools; i++) { in cond_normalize_expr()
410 p->bool_val_to_struct[cn->bool_ids[i] - 1]->state; in cond_normalize_expr()
414 for (test = 0x0; test < (UINT32_C(1) << cn->nbools); test++) { in cond_normalize_expr()
417 for (j = 0; j < cn->nbools; j++) { in cond_normalize_expr()
418 p->bool_val_to_struct[cn->bool_ids[j] - in cond_normalize_expr()
422 k = cond_evaluate_expr(p, cn->expr); in cond_normalize_expr()
431 cn->expr_pre_comp |= UINT32_C(1) << test; in cond_normalize_expr()
435 for (i = 0; i < cn->nbools; i++) in cond_normalize_expr()
436 p->bool_val_to_struct[cn->bool_ids[i] - 1]->state = in cond_normalize_expr()