Home
last modified time | relevance | path

Searched refs:CEXPR_ROLE (Results 1 – 9 of 9) sorted by relevance

/external/selinux/checkpolicy/
Dpolicy_parse.y571 { $$ = define_cexpr(CEXPR_ATTR, CEXPR_ROLE, $2);
586 { $$ = define_cexpr(CEXPR_NAMES, CEXPR_ROLE, $2);
589 { $$ = define_cexpr(CEXPR_NAMES, (CEXPR_ROLE | CEXPR_TARGET), $2);
592 { $$ = define_cexpr(CEXPR_NAMES, (CEXPR_ROLE | CEXPR_XTARGET), $2);
607 { $$ = define_cexpr(CEXPR_NAMES, CEXPR_ROLE, CEXPR_EQ);
610 { $$ = define_cexpr(CEXPR_NAMES, (CEXPR_ROLE | CEXPR_TARGET), CEXPR_EQ);
613 { $$ = define_cexpr(CEXPR_ATTR, CEXPR_ROLE, $2);
Dpolicy_define.c3860 } else if (expr->attr & CEXPR_ROLE) { in define_cexpr()
/external/selinux/libsepol/include/sepol/policydb/
Dconstraint.h42 #define CEXPR_ROLE 2 /* role */ macro
/external/selinux/libsepol/src/
Dservices.c255 case CEXPR_ROLE: in get_name_list()
508 case CEXPR_ROLE: in constraint_expr_eval_reason()
644 } else if (e->attr & CEXPR_ROLE) { in constraint_expr_eval_reason()
645 u_r_t = CEXPR_ROLE; in constraint_expr_eval_reason()
Dkernel_to_conf.c155 case CEXPR_ROLE: attr1 ="r1"; attr2 ="r2"; break; in constraint_expr_to_str()
156 case CEXPR_ROLE | CEXPR_TARGET: attr1 ="r2"; attr2 =""; break; in constraint_expr_to_str()
157 case CEXPR_ROLE | CEXPR_XTARGET: attr1 ="r3"; attr2 =""; break; in constraint_expr_to_str()
185 } else if (curr->attr & CEXPR_ROLE) { in constraint_expr_to_str()
Dkernel_to_cil.c157 case CEXPR_ROLE: attr1 ="r1"; attr2 ="r2"; break; in constraint_expr_to_str()
158 case CEXPR_ROLE | CEXPR_TARGET: attr1 ="r2"; attr2 =""; break; in constraint_expr_to_str()
159 case CEXPR_ROLE | CEXPR_XTARGET: attr1 ="r3"; attr2 =""; break; in constraint_expr_to_str()
188 } else if (curr->attr & CEXPR_ROLE) { in constraint_expr_to_str()
Dmodule_to_cil.c1745 case CEXPR_ROLE: attr1 = "r1"; attr2 = "r2"; break; in constraint_expr_to_string()
1746 case CEXPR_ROLE | CEXPR_TARGET: attr1 = "r2"; attr2 = ""; break; in constraint_expr_to_string()
1747 case CEXPR_ROLE | CEXPR_XTARGET: attr1 = "r3"; attr2 = ""; break; in constraint_expr_to_string()
1790 } else if (expr->attr & CEXPR_ROLE) { in constraint_expr_to_string()
Dexpand.c332 } else if (new_expr->attr & CEXPR_ROLE) { in constraint_node_clone()
/external/selinux/libsepol/cil/src/
Dcil_binary.c2541 expr->attr = CEXPR_ROLE; in __cil_constrain_expr_leaf_to_sepol_expr()
2544 expr->attr = CEXPR_ROLE | CEXPR_TARGET; in __cil_constrain_expr_leaf_to_sepol_expr()
2547 expr->attr = CEXPR_ROLE | CEXPR_XTARGET; in __cil_constrain_expr_leaf_to_sepol_expr()