Searched refs:expr (Results 1 – 5 of 5) sorted by relevance
26 static int cond_evaluate_expr(struct policydb *p, struct cond_expr *expr) in cond_evaluate_expr() argument33 for (cur = expr; cur; cur = cur->next) { in cond_evaluate_expr()95 new_state = cond_evaluate_expr(p, node->expr); in evaluate_cond_node()147 for (cur_expr = node->expr; cur_expr; cur_expr = next_expr) { in cond_node_destroy()385 static int expr_isvalid(struct policydb *p, struct cond_expr *expr) in expr_isvalid() argument387 if (expr->expr_type <= 0 || expr->expr_type > COND_LAST) { in expr_isvalid()392 if (expr->bool > p->p_bools.nprim) { in expr_isvalid()404 struct cond_expr *expr = NULL, *last = NULL; in cond_read_node() local426 expr = kzalloc(sizeof(struct cond_expr), GFP_KERNEL); in cond_read_node()427 if (!expr) in cond_read_node()[all …]
58 struct constraint_expr *expr; /* constraint on permissions */ member
57 struct cond_expr *expr; member
626 static void constraint_expr_destroy(struct constraint_expr *expr) in constraint_expr_destroy() argument628 if (expr) { in constraint_expr_destroy()629 ebitmap_destroy(&expr->names); in constraint_expr_destroy()630 if (expr->type_names) { in constraint_expr_destroy()631 ebitmap_destroy(&expr->type_names->types); in constraint_expr_destroy()632 ebitmap_destroy(&expr->type_names->negset); in constraint_expr_destroy()633 kfree(expr->type_names); in constraint_expr_destroy()635 kfree(expr); in constraint_expr_destroy()652 e = constraint->expr; in cls_destroy()665 e = constraint->expr; in cls_destroy()[all …]
720 constraint->expr)) { in context_struct_compute_av()833 constraint->expr)) { in security_validate_transition()