Home
last modified time | relevance | path

Searched refs:expr (Results 1 – 5 of 5) sorted by relevance

/security/selinux/ss/
Dconditional.c26 static int cond_evaluate_expr(struct policydb *p, struct cond_expr *expr) in cond_evaluate_expr() argument
33 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() argument
387 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() local
426 expr = kzalloc(sizeof(struct cond_expr), GFP_KERNEL); in cond_read_node()
427 if (!expr) in cond_read_node()
[all …]
Dconstraint.h58 struct constraint_expr *expr; /* constraint on permissions */ member
Dconditional.h57 struct cond_expr *expr; member
Dpolicydb.c626 static void constraint_expr_destroy(struct constraint_expr *expr) in constraint_expr_destroy() argument
628 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 …]
Dservices.c720 constraint->expr)) { in context_struct_compute_av()
833 constraint->expr)) { in security_validate_transition()