• Home
  • Raw
  • Download

Lines Matching refs:new_ocon

3231 			ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_ISID], &tail);  in cil_sidorder_to_policydb()  local
3232 new_ocon->sid[0] = count; in cil_sidorder_to_policydb()
3233 new_ocon->u.name = cil_strdup(cil_sid->datum.fqn); in cil_sidorder_to_policydb()
3234 rc = __cil_context_to_sepol_context(pdb, cil_context, &new_ocon->context[0]); in cil_sidorder_to_policydb()
3345 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBPKEY], &tail); in cil_ibpkeycon_to_policydb() local
3354 memcpy(&new_ocon->u.ibpkey.subnet_prefix, &subnet_prefix.s6_addr[0], in cil_ibpkeycon_to_policydb()
3355 sizeof(new_ocon->u.ibpkey.subnet_prefix)); in cil_ibpkeycon_to_policydb()
3356 new_ocon->u.ibpkey.low_pkey = cil_ibpkeycon->pkey_low; in cil_ibpkeycon_to_policydb()
3357 new_ocon->u.ibpkey.high_pkey = cil_ibpkeycon->pkey_high; in cil_ibpkeycon_to_policydb()
3359 rc = __cil_context_to_sepol_context(pdb, cil_ibpkeycon->context, &new_ocon->context[0]); in cil_ibpkeycon_to_policydb()
3378 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_PORT], &tail); in cil_portcon_to_policydb() local
3382 new_ocon->u.port.protocol = IPPROTO_UDP; in cil_portcon_to_policydb()
3385 new_ocon->u.port.protocol = IPPROTO_TCP; in cil_portcon_to_policydb()
3388 new_ocon->u.port.protocol = IPPROTO_DCCP; in cil_portcon_to_policydb()
3391 new_ocon->u.port.protocol = IPPROTO_SCTP; in cil_portcon_to_policydb()
3399 new_ocon->u.port.low_port = cil_portcon->port_low; in cil_portcon_to_policydb()
3400 new_ocon->u.port.high_port = cil_portcon->port_high; in cil_portcon_to_policydb()
3402 rc = __cil_context_to_sepol_context(pdb, cil_portcon->context, &new_ocon->context[0]); in cil_portcon_to_policydb()
3421 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NETIF], &tail); in cil_netifcon_to_policydb() local
3424 new_ocon->u.name = cil_strdup(cil_netifcon->interface_str); in cil_netifcon_to_policydb()
3426 rc = __cil_context_to_sepol_context(pdb, cil_netifcon->if_context, &new_ocon->context[0]); in cil_netifcon_to_policydb()
3431 rc = __cil_context_to_sepol_context(pdb, cil_netifcon->packet_context, &new_ocon->context[1]); in cil_netifcon_to_policydb()
3433 context_destroy(&new_ocon->context[0]); in cil_netifcon_to_policydb()
3451 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBENDPORT], &tail); in cil_ibendportcon_to_policydb() local
3454 new_ocon->u.ibendport.dev_name = cil_strdup(cil_ibendportcon->dev_name_str); in cil_ibendportcon_to_policydb()
3455 new_ocon->u.ibendport.port = cil_ibendportcon->port; in cil_ibendportcon_to_policydb()
3457 rc = __cil_context_to_sepol_context(pdb, cil_ibendportcon->context, &new_ocon->context[0]); in cil_ibendportcon_to_policydb()
3476 ocontext_t *new_ocon = NULL; in cil_nodecon_to_policydb() local
3480 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE], &tail); in cil_nodecon_to_policydb()
3481 new_ocon->u.node.addr = cil_nodecon->addr->ip.v4.s_addr; in cil_nodecon_to_policydb()
3482 new_ocon->u.node.mask = cil_nodecon->mask->ip.v4.s_addr; in cil_nodecon_to_policydb()
3484 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE6], &tail6); in cil_nodecon_to_policydb()
3485 memcpy(new_ocon->u.node6.addr, &cil_nodecon->addr->ip.v6.s6_addr[0], 16); in cil_nodecon_to_policydb()
3486 memcpy(new_ocon->u.node6.mask, &cil_nodecon->mask->ip.v6.s6_addr[0], 16); in cil_nodecon_to_policydb()
3493 rc = __cil_context_to_sepol_context(pdb, cil_nodecon->context, &new_ocon->context[0]); in cil_nodecon_to_policydb()
3512 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_FSUSE], &tail); in cil_fsuse_to_policydb() local
3515 new_ocon->u.name = cil_strdup(cil_fsuse->fs_str); in cil_fsuse_to_policydb()
3516 new_ocon->v.behavior = cil_fsuse->type; in cil_fsuse_to_policydb()
3518 rc = __cil_context_to_sepol_context(pdb, cil_fsuse->context, &new_ocon->context[0]); in cil_fsuse_to_policydb()
3539 ocontext_t *new_ocon = cil_malloc(sizeof(ocontext_t)); in cil_genfscon_to_policydb() local
3540 memset(new_ocon, 0, sizeof(ocontext_t)); in cil_genfscon_to_policydb()
3543 ocon_tail->next = new_ocon; in cil_genfscon_to_policydb()
3548 new_genfs->head = new_ocon; in cil_genfscon_to_policydb()
3558 ocon_tail = new_ocon; in cil_genfscon_to_policydb()
3560 new_ocon->u.name = cil_strdup(cil_genfscon->path_str); in cil_genfscon_to_policydb()
3596 new_ocon->v.sclass = class_datum->s.value; in cil_genfscon_to_policydb()
3599 rc = __cil_context_to_sepol_context(pdb, cil_genfscon->context, &new_ocon->context[0]); in cil_genfscon_to_policydb()
3618 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_PIRQ], &tail); in cil_pirqcon_to_policydb() local
3621 new_ocon->u.pirq = cil_pirqcon->pirq; in cil_pirqcon_to_policydb()
3623 rc = __cil_context_to_sepol_context(pdb, cil_pirqcon->context, &new_ocon->context[0]); in cil_pirqcon_to_policydb()
3642 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_IOMEM], &tail); in cil_iomemcon_to_policydb() local
3645 new_ocon->u.iomem.low_iomem = cil_iomemcon->iomem_low; in cil_iomemcon_to_policydb()
3646 new_ocon->u.iomem.high_iomem = cil_iomemcon->iomem_high; in cil_iomemcon_to_policydb()
3648 rc = __cil_context_to_sepol_context(pdb, cil_iomemcon->context, &new_ocon->context[0]); in cil_iomemcon_to_policydb()
3667 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_IOPORT], &tail); in cil_ioportcon_to_policydb() local
3670 new_ocon->u.ioport.low_ioport = cil_ioportcon->ioport_low; in cil_ioportcon_to_policydb()
3671 new_ocon->u.ioport.high_ioport = cil_ioportcon->ioport_high; in cil_ioportcon_to_policydb()
3673 rc = __cil_context_to_sepol_context(pdb, cil_ioportcon->context, &new_ocon->context[0]); in cil_ioportcon_to_policydb()
3692 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_PCIDEVICE], &tail); in cil_pcidevicecon_to_policydb() local
3695 new_ocon->u.device = cil_pcidevicecon->dev; in cil_pcidevicecon_to_policydb()
3697 rc = __cil_context_to_sepol_context(pdb, cil_pcidevicecon->context, &new_ocon->context[0]); in cil_pcidevicecon_to_policydb()
3716 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_DEVICETREE], &tail); in cil_devicetreecon_to_policydb() local
3719 new_ocon->u.name = cil_strdup(cil_devicetreecon->path); in cil_devicetreecon_to_policydb()
3721 rc = __cil_context_to_sepol_context(pdb, cil_devicetreecon->context, &new_ocon->context[0]); in cil_devicetreecon_to_policydb()