/external/selinux/libsepol/src/ |
D | nodes.c | 155 head = policydb->ocontexts[OCON_NODE]; in sepol_node_count() 159 head = policydb->ocontexts[OCON_NODE6]; in sepol_node_count() 185 head = policydb->ocontexts[OCON_NODE]; in sepol_node_exists() 201 head = policydb->ocontexts[OCON_NODE6]; in sepol_node_exists() 245 head = policydb->ocontexts[OCON_NODE]; in sepol_node_query() 264 head = policydb->ocontexts[OCON_NODE6]; in sepol_node_query() 317 node->next = policydb->ocontexts[OCON_NODE]; in sepol_node_modify() 318 policydb->ocontexts[OCON_NODE] = node; in sepol_node_modify() 324 node->next = policydb->ocontexts[OCON_NODE6]; in sepol_node_modify() 325 policydb->ocontexts[OCON_NODE6] = node; in sepol_node_modify() [all …]
|
D | interfaces.c | 120 head = policydb->ocontexts[OCON_NETIF]; in sepol_iface_exists() 144 head = policydb->ocontexts[OCON_NETIF]; in sepol_iface_query() 180 head = policydb->ocontexts[OCON_NETIF]; in sepol_iface_modify() 187 policydb->ocontexts[OCON_NETIF] = iface; in sepol_iface_modify() 201 iface->next = policydb->ocontexts[OCON_NETIF]; in sepol_iface_modify() 202 policydb->ocontexts[OCON_NETIF] = iface; in sepol_iface_modify() 226 head = policydb->ocontexts[OCON_NETIF]; in sepol_iface_count() 245 head = policydb->ocontexts[OCON_NETIF]; in sepol_iface_iterate()
|
D | kernel_to_common.c | 620 rc = sort_ocontext_data(&pdb->ocontexts[5], fsuse_data_cmp); in sort_ocontexts() 625 rc = sort_ocontext_data(&pdb->ocontexts[2], portcon_data_cmp); in sort_ocontexts() 630 rc = sort_ocontext_data(&pdb->ocontexts[3], netif_data_cmp); in sort_ocontexts() 635 rc = sort_ocontext_data(&pdb->ocontexts[4], node_data_cmp); in sort_ocontexts() 640 rc = sort_ocontext_data(&pdb->ocontexts[6], node6_data_cmp); in sort_ocontexts() 645 rc = sort_ocontext_data(&pdb->ocontexts[1], pirq_data_cmp); in sort_ocontexts() 650 rc = sort_ocontext_data(&pdb->ocontexts[2], ioport_data_cmp); in sort_ocontexts() 655 rc = sort_ocontext_data(&pdb->ocontexts[3], iomem_data_cmp); in sort_ocontexts() 660 rc = sort_ocontext_data(&pdb->ocontexts[4], pcid_data_cmp); in sort_ocontexts() 665 rc = sort_ocontext_data(&pdb->ocontexts[5], dtree_data_cmp); in sort_ocontexts()
|
D | ports.c | 158 head = policydb->ocontexts[OCON_PORT]; in sepol_port_count() 184 head = policydb->ocontexts[OCON_PORT]; in sepol_port_exists() 222 head = policydb->ocontexts[OCON_PORT]; in sepol_port_query() 267 port->next = policydb->ocontexts[OCON_PORT]; in sepol_port_modify() 268 policydb->ocontexts[OCON_PORT] = port; in sepol_port_modify() 292 head = policydb->ocontexts[OCON_PORT]; in sepol_port_iterate()
|
D | kernel_to_cil.c | 590 rc = write_sids_to_cil(out, selinux_sid_to_str, pdb->ocontexts[0]); in write_sid_decl_rules_to_cil() 592 rc = write_sids_to_cil(out, xen_sid_to_str, pdb->ocontexts[0]); in write_sid_decl_rules_to_cil() 2493 for (isid = pdb->ocontexts[0]; isid != NULL; isid = isid->next) { in write_sid_context_rules_to_cil() 2541 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_cil() 2629 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_cil() 2679 for (netif = pdb->ocontexts[3]; netif != NULL; netif = netif->next) { in write_selinux_netif_rules_to_cil() 2715 for (node = pdb->ocontexts[4]; node != NULL; node = node->next) { in write_selinux_node_rules_to_cil() 2755 for (node = pdb->ocontexts[6]; node != NULL; node = node->next) { in write_selinux_node6_rules_to_cil() 2799 for (pirq = pdb->ocontexts[1]; pirq != NULL; pirq = pirq->next) { in write_xen_pirq_rules_to_cil() 2836 for (ioport = pdb->ocontexts[2]; ioport != NULL; ioport = ioport->next) { in write_xen_ioport_rules_to_cil() [all …]
|
D | kernel_to_conf.c | 471 rc = write_sids_to_conf(out, selinux_sid_to_str, pdb->ocontexts[0]); in write_sid_decl_rules_to_conf() 473 rc = write_sids_to_conf(out, xen_sid_to_str, pdb->ocontexts[0]); in write_sid_decl_rules_to_conf() 2353 for (isid = pdb->ocontexts[0]; isid != NULL; isid = isid->next) { in write_sid_context_rules_to_conf() 2401 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_conf() 2489 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_conf() 2539 for (netif = pdb->ocontexts[3]; netif != NULL; netif = netif->next) { in write_selinux_netif_rules_to_conf() 2575 for (node = pdb->ocontexts[4]; node != NULL; node = node->next) { in write_selinux_node_rules_to_conf() 2616 for (node6 = pdb->ocontexts[6]; node6 != NULL; node6 = node6->next) { in write_selinux_node6_rules_to_conf() 2661 for (pirq = pdb->ocontexts[1]; pirq != NULL; pirq = pirq->next) { in write_xen_pirq_rules_to_conf() 2700 for (ioport = pdb->ocontexts[2]; ioport != NULL; ioport = ioport->next) { in write_xen_ioport_rules_to_conf() [all …]
|
D | services.c | 1882 c = policydb->ocontexts[OCON_FS]; in sepol_fs_sid() 1925 c = policydb->ocontexts[OCON_PORT]; in sepol_port_sid() 1964 c = policydb->ocontexts[OCON_NETIF]; in sepol_netif_sid() 2033 c = policydb->ocontexts[OCON_NODE]; in sepol_node_sid() 2048 c = policydb->ocontexts[OCON_NODE6]; in sepol_node_sid() 2240 c = policydb->ocontexts[OCON_FSUSE]; in sepol_fs_use()
|
D | policydb.c | 1370 void ocontext_selinux_free(ocontext_t **ocontexts) in ocontext_selinux_free() argument 1376 c = ocontexts[i]; in ocontext_selinux_free() 1390 void ocontext_xen_free(ocontext_t **ocontexts) in ocontext_xen_free() argument 1396 c = ocontexts[i]; in ocontext_xen_free() 1455 ocontext_selinux_free(p->ocontexts); in policydb_destroy() 1457 ocontext_xen_free(p->ocontexts); in policydb_destroy() 1557 head = p->ocontexts[OCON_ISID]; in policydb_load_isids() 2640 p->ocontexts[i] = c; in ocontext_read_xen() 2750 p->ocontexts[i] = c; in ocontext_read_selinux()
|
D | write.c | 1283 for (c = p->ocontexts[i]; c; c = c->next) in ocontext_write_xen() 1289 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_xen() 1382 for (c = p->ocontexts[i]; c; c = c->next) in ocontext_write_selinux() 1388 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_selinux()
|
D | expand.c | 2119 for (c = state->base->ocontexts[i]; c; c = c->next) { in ocontext_copy_xen() 2129 state->out->ocontexts[i] = n; in ocontext_copy_xen() 2185 for (c = state->base->ocontexts[i]; c; c = c->next) { in ocontext_copy_selinux() 2195 state->out->ocontexts[i] = n; in ocontext_copy_selinux()
|
D | module_to_cil.c | 2918 rc = ocon_funcs[ocon](pdb, pdb->ocontexts[ocon]); in ocontexts_to_cil()
|
/external/selinux/checkpolicy/ |
D | policy_define.c | 311 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid() 326 policydbp->ocontexts[OCON_ISID] = newc; in define_initial_sid() 4592 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid_context() 4658 head = policydbp->ocontexts[OCON_FS]; in define_fs_context() 4673 policydbp->ocontexts[OCON_FS] = newc; in define_fs_context() 4709 head = policydbp->ocontexts[OCON_XEN_PIRQ]; in define_pirq_context() 4723 policydbp->ocontexts[OCON_XEN_PIRQ] = newc; in define_pirq_context() 4770 head = policydbp->ocontexts[OCON_XEN_IOMEM]; in define_iomem_context() 4787 policydbp->ocontexts[OCON_XEN_IOMEM] = newc; in define_iomem_context() 4834 head = policydbp->ocontexts[OCON_XEN_IOPORT]; in define_ioport_context() [all …]
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 3104 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_ISID], &tail); in cil_sidorder_to_policydb() 3229 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_PORT], &tail); in cil_portcon_to_policydb() 3269 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NETIF], &tail); in cil_netifcon_to_policydb() 3304 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE], &tail); in cil_nodecon_to_policydb() 3308 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE6], &tail6); in cil_nodecon_to_policydb() 3336 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_FSUSE], &tail); in cil_fsuse_to_policydb() 3405 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_PIRQ], &tail); in cil_pirqcon_to_policydb() 3429 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_IOMEM], &tail); in cil_iomemcon_to_policydb() 3454 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_IOPORT], &tail); in cil_ioportcon_to_policydb() 3479 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_PCIDEVICE], &tail); in cil_pcidevicecon_to_policydb() [all …]
|
/external/selinux/checkpolicy/test/ |
D | dismod.c | 419 for (cur = p->ocontexts[OCON_ISID]; cur != NULL; cur = cur->next) { in display_initial_sids() 428 for (cur = p->ocontexts[OCON_POLICYISID]; cur != NULL; cur = cur->next) { in display_initial_sids()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 568 ocontext_t *ocontexts[OCON_NUM]; member
|