Lines Matching defs:tail
225 static ocontext_t *cil_add_ocontext(ocontext_t **head, ocontext_t **tail)
229 if (*tail) {
230 (*tail)->next = new;
234 *tail = new;
2110 static int __cil_cond_expr_to_sepol_expr_helper(policydb_t *pdb, struct cil_list *cil_expr, cond_expr_t **head, cond_expr_t **tail);
2112 static int __cil_cond_item_to_sepol_expr(policydb_t *pdb, struct cil_list_item *item, cond_expr_t **head, cond_expr_t **tail)
2127 *tail = *head;
2130 int rc = __cil_cond_expr_to_sepol_expr_helper(pdb, l, head, tail);
2144 static int __cil_cond_expr_to_sepol_expr_helper(policydb_t *pdb, struct cil_list *cil_expr, cond_expr_t **head, cond_expr_t **tail)
2199 *tail = op;
2212 *tail = op;
2236 *tail = t1;
2248 cond_expr_t *head, *tail;
2250 rc = __cil_cond_expr_to_sepol_expr_helper(pdb, cil_expr, &head, &tail);
2734 static int __cil_constrain_expr_to_sepol_expr_helper(policydb_t *pdb, const struct cil_db *db, const struct cil_list *cil_expr, constraint_expr_t **head, constraint_expr_t **tail)
2797 *tail = op;
2806 *tail = op;
2822 *tail = op;
2835 constraint_expr_t *head, *tail;
2837 rc = __cil_constrain_expr_to_sepol_expr_helper(pdb, db, cil_expr, &head, &tail);
3216 ocontext_t *tail = NULL;
3231 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_ISID], &tail);
3340 ocontext_t *tail = NULL;
3345 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBPKEY], &tail);
3374 ocontext_t *tail = NULL;
3378 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_PORT], &tail);
3418 ocontext_t *tail = NULL;
3421 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NETIF], &tail);
3448 ocontext_t *tail = NULL;
3451 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBENDPORT], &tail);
3472 ocontext_t *tail = NULL;
3480 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE], &tail);
3509 ocontext_t *tail = NULL;
3512 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_FSUSE], &tail);
3615 ocontext_t *tail = NULL;
3618 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_PIRQ], &tail);
3639 ocontext_t *tail = NULL;
3642 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_IOMEM], &tail);
3664 ocontext_t *tail = NULL;
3667 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_IOPORT], &tail);
3689 ocontext_t *tail = NULL;
3692 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_PCIDEVICE], &tail);
3713 ocontext_t *tail = NULL;
3716 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_DEVICETREE], &tail);
4679 if (i2 != cp->perms->tail) {