Home
last modified time | relevance | path

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

/security/selinux/ss/
Dconditional.c24 static int cond_evaluate_expr(struct policydb *p, struct cond_expr *expr) in cond_evaluate_expr() argument
30 if (expr->len == 0) in cond_evaluate_expr()
33 for (i = 0; i < expr->len; i++) { in cond_evaluate_expr()
34 struct cond_expr_node *node = &expr->nodes[i]; in cond_evaluate_expr()
98 new_state = cond_evaluate_expr(p, &node->expr); in evaluate_cond_node()
142 kfree(node->expr.nodes); in cond_node_destroy()
362 static int expr_node_isvalid(struct policydb *p, struct cond_expr_node *expr) in expr_node_isvalid() argument
364 if (expr->expr_type <= 0 || expr->expr_type > COND_LAST) { in expr_node_isvalid()
369 if (expr->bool > p->p_bools.nprim) { in expr_node_isvalid()
390 node->expr.nodes = kcalloc(len, sizeof(*node->expr.nodes), GFP_KERNEL); in cond_read_node()
[all …]
Dconstraint.h59 struct constraint_expr *expr; /* constraint on permissions */ member
Dconditional.h59 struct cond_expr expr; member
Dpolicydb.c201 static void constraint_expr_destroy(struct constraint_expr *expr) in constraint_expr_destroy() argument
203 if (expr) { in constraint_expr_destroy()
204 ebitmap_destroy(&expr->names); in constraint_expr_destroy()
205 if (expr->type_names) { in constraint_expr_destroy()
206 ebitmap_destroy(&expr->type_names->types); in constraint_expr_destroy()
207 ebitmap_destroy(&expr->type_names->negset); in constraint_expr_destroy()
208 kfree(expr->type_names); in constraint_expr_destroy()
210 kfree(expr); in constraint_expr_destroy()
227 e = constraint->expr; in cls_destroy()
240 e = constraint->expr; in cls_destroy()
[all …]
Dservices.c692 constraint->expr)) { in context_struct_compute_av()
820 constraint->expr)) { in security_compute_validatetrans()