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()
388 static int expr_isvalid(struct policydb *p, struct cond_expr *expr) in expr_isvalid() argument
390 if (expr->expr_type <= 0 || expr->expr_type > COND_LAST) { in expr_isvalid()
395 if (expr->bool > p->p_bools.nprim) { in expr_isvalid()
407 struct cond_expr *expr = NULL, *last = NULL; in cond_read_node() local
424 expr = kzalloc(sizeof(*expr), GFP_KERNEL); in cond_read_node()
425 if (!expr) in cond_read_node()
[all …]
Dconstraint.h59 struct constraint_expr *expr; /* constraint on permissions */ member
Dconditional.h57 struct cond_expr *expr; member
Dpolicydb.c638 static void constraint_expr_destroy(struct constraint_expr *expr) in constraint_expr_destroy() argument
640 if (expr) { in constraint_expr_destroy()
641 ebitmap_destroy(&expr->names); in constraint_expr_destroy()
642 if (expr->type_names) { in constraint_expr_destroy()
643 ebitmap_destroy(&expr->type_names->types); in constraint_expr_destroy()
644 ebitmap_destroy(&expr->type_names->negset); in constraint_expr_destroy()
645 kfree(expr->type_names); in constraint_expr_destroy()
647 kfree(expr); in constraint_expr_destroy()
664 e = constraint->expr; in cls_destroy()
677 e = constraint->expr; in cls_destroy()
[all …]
Dservices.c709 constraint->expr)) { in context_struct_compute_av()
823 constraint->expr)) { in security_compute_validatetrans()