Home
last modified time | relevance | path

Searched refs:CEXPR_TYPE (Results 1 – 10 of 10) sorted by relevance

/third_party/selinux/checkpolicy/
Dpolicy_parse.y573 { $$ = define_cexpr(CEXPR_ATTR, CEXPR_TYPE, $2);
594 { $$ = define_cexpr(CEXPR_NAMES, CEXPR_TYPE, $2);
597 { $$ = define_cexpr(CEXPR_NAMES, (CEXPR_TYPE | CEXPR_TARGET), $2);
600 { $$ = define_cexpr(CEXPR_NAMES, (CEXPR_TYPE | CEXPR_XTARGET), $2);
615 { $$ = define_cexpr(CEXPR_NAMES, CEXPR_TYPE, CEXPR_EQ);
618 { $$ = define_cexpr(CEXPR_NAMES, (CEXPR_TYPE | CEXPR_TARGET), CEXPR_EQ);
Dpolicy_define.c3501 if (newe->attr & CEXPR_TYPE) { in constraint_expr_clone()
3900 } else if (expr->attr & CEXPR_TYPE) { in define_cexpr()
/third_party/selinux/libsepol/include/sepol/policydb/
Dconstraint.h42 #define CEXPR_TYPE 4 /* type */ macro
/third_party/selinux/libsepol/src/
Dpolicydb_validate.c247 if (!(cexp->attr & CEXPR_TYPE)) { in validate_constraint_nodes()
273 case CEXPR_TYPE: in validate_constraint_nodes()
274 case CEXPR_TYPE | CEXPR_TARGET: in validate_constraint_nodes()
275 case CEXPR_TYPE | CEXPR_XTARGET: in validate_constraint_nodes()
297 if ((cexp->attr & CEXPR_USER) || (cexp->attr & CEXPR_TYPE)) in validate_constraint_nodes()
307 case CEXPR_TYPE: in validate_constraint_nodes()
Dservices.c220 type == CEXPR_TYPE) in get_name_list()
256 case CEXPR_TYPE: in get_name_list()
518 case CEXPR_TYPE: in constraint_expr_eval_reason()
665 } else if (e->attr & CEXPR_TYPE) { in constraint_expr_eval_reason()
666 u_r_t = CEXPR_TYPE; in constraint_expr_eval_reason()
Dkernel_to_conf.c158 case CEXPR_TYPE: attr1 ="t1"; attr2 ="t2"; break; in constraint_expr_to_str()
159 case CEXPR_TYPE | CEXPR_TARGET: attr1 ="t2"; attr2 =""; break; in constraint_expr_to_str()
160 case CEXPR_TYPE | CEXPR_XTARGET: attr1 ="t3"; attr2 =""; break; in constraint_expr_to_str()
180 if (curr->attr & CEXPR_TYPE) { in constraint_expr_to_str()
Dkernel_to_cil.c160 case CEXPR_TYPE: attr1 ="t1"; attr2 ="t2"; break; in constraint_expr_to_str()
161 case CEXPR_TYPE | CEXPR_TARGET: attr1 ="t2"; attr2 =""; break; in constraint_expr_to_str()
162 case CEXPR_TYPE | CEXPR_XTARGET: attr1 ="t3"; attr2 =""; break; in constraint_expr_to_str()
183 if (curr->attr & CEXPR_TYPE) { in constraint_expr_to_str()
Dmodule_to_cil.c1754 case CEXPR_TYPE: attr1 = "t1"; attr2 = "t2"; break; in constraint_expr_to_string()
1755 case CEXPR_TYPE | CEXPR_TARGET: attr1 = "t2"; attr2 = ""; break; in constraint_expr_to_string()
1756 case CEXPR_TYPE | CEXPR_XTARGET: attr1 = "t3"; attr2 = ""; break; in constraint_expr_to_string()
1785 if (expr->attr & CEXPR_TYPE) { in constraint_expr_to_string()
Dexpand.c342 if (new_expr->attr & CEXPR_TYPE) { in constraint_node_clone()
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c2667 expr->attr = CEXPR_TYPE; in __cil_constrain_expr_leaf_to_sepol_expr()
2670 expr->attr = CEXPR_TYPE | CEXPR_TARGET; in __cil_constrain_expr_leaf_to_sepol_expr()
2673 expr->attr = CEXPR_TYPE | CEXPR_XTARGET; in __cil_constrain_expr_leaf_to_sepol_expr()