/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 | ibendports.c | 116 head = policydb->ocontexts[OCON_IBENDPORT]; in sepol_ibendport_count() 137 head = policydb->ocontexts[OCON_IBENDPORT]; in sepol_ibendport_exists() 165 head = policydb->ocontexts[OCON_IBENDPORT]; in sepol_ibendport_query() 204 ibendport->next = policydb->ocontexts[OCON_IBENDPORT]; in sepol_ibendport_modify() 205 policydb->ocontexts[OCON_IBENDPORT] = ibendport; in sepol_ibendport_modify() 228 head = policydb->ocontexts[OCON_IBENDPORT]; in sepol_ibendport_iterate()
|
D | kernel_to_common.c | 653 rc = sort_ocontext_data(&pdb->ocontexts[5], fsuse_data_cmp); in sort_ocontexts() 658 rc = sort_ocontext_data(&pdb->ocontexts[2], portcon_data_cmp); in sort_ocontexts() 663 rc = sort_ocontext_data(&pdb->ocontexts[3], netif_data_cmp); in sort_ocontexts() 668 rc = sort_ocontext_data(&pdb->ocontexts[4], node_data_cmp); in sort_ocontexts() 673 rc = sort_ocontext_data(&pdb->ocontexts[6], node6_data_cmp); in sort_ocontexts() 678 rc = sort_ocontext_data(&pdb->ocontexts[OCON_IBPKEY], ibpkey_data_cmp); in sort_ocontexts() 683 rc = sort_ocontext_data(&pdb->ocontexts[OCON_IBENDPORT], ibendport_data_cmp); in sort_ocontexts() 688 rc = sort_ocontext_data(&pdb->ocontexts[1], pirq_data_cmp); in sort_ocontexts() 693 rc = sort_ocontext_data(&pdb->ocontexts[2], ioport_data_cmp); in sort_ocontexts() 698 rc = sort_ocontext_data(&pdb->ocontexts[3], iomem_data_cmp); in sort_ocontexts() [all …]
|
D | ibpkeys.c | 110 head = policydb->ocontexts[OCON_IBPKEY]; in sepol_ibpkey_count() 131 head = policydb->ocontexts[OCON_IBPKEY]; in sepol_ibpkey_exists() 161 head = policydb->ocontexts[OCON_IBPKEY]; in sepol_ibpkey_query() 201 ibpkey->next = policydb->ocontexts[OCON_IBPKEY]; in sepol_ibpkey_modify() 202 policydb->ocontexts[OCON_IBPKEY] = ibpkey; in sepol_ibpkey_modify() 225 head = policydb->ocontexts[OCON_IBPKEY]; in sepol_ibpkey_iterate()
|
D | ports.c | 165 head = policydb->ocontexts[OCON_PORT]; in sepol_port_count() 191 head = policydb->ocontexts[OCON_PORT]; in sepol_port_exists() 229 head = policydb->ocontexts[OCON_PORT]; in sepol_port_query() 274 port->next = policydb->ocontexts[OCON_PORT]; in sepol_port_modify() 275 policydb->ocontexts[OCON_PORT] = port; in sepol_port_modify() 299 head = policydb->ocontexts[OCON_PORT]; in sepol_port_iterate()
|
D | kernel_to_conf.c | 487 pdb->ocontexts[0]); in write_sid_decl_rules_to_conf() 490 pdb->ocontexts[0]); in write_sid_decl_rules_to_conf() 2371 for (isid = pdb->ocontexts[0]; isid != NULL; isid = isid->next) { in write_sid_context_rules_to_conf() 2426 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_conf() 2514 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_conf() 2565 for (netif = pdb->ocontexts[3]; netif != NULL; netif = netif->next) { in write_selinux_netif_rules_to_conf() 2601 for (node = pdb->ocontexts[4]; node != NULL; node = node->next) { in write_selinux_node_rules_to_conf() 2642 for (node6 = pdb->ocontexts[6]; node6 != NULL; node6 = node6->next) { in write_selinux_node6_rules_to_conf() 2685 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_conf() 2739 for (ibendportcon = pdb->ocontexts[OCON_IBENDPORT]; in write_selinux_ibendport_rules_to_conf() [all …]
|
D | kernel_to_cil.c | 606 pdb->ocontexts[0]); in write_sid_decl_rules_to_cil() 609 pdb->ocontexts[0]); in write_sid_decl_rules_to_cil() 2511 for (isid = pdb->ocontexts[0]; isid != NULL; isid = isid->next) { in write_sid_context_rules_to_cil() 2566 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_cil() 2654 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_cil() 2705 for (netif = pdb->ocontexts[3]; netif != NULL; netif = netif->next) { in write_selinux_netif_rules_to_cil() 2741 for (node = pdb->ocontexts[4]; node != NULL; node = node->next) { in write_selinux_node_rules_to_cil() 2781 for (node = pdb->ocontexts[6]; node != NULL; node = node->next) { in write_selinux_node6_rules_to_cil() 2824 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_cil() 2877 for (ibendportcon = pdb->ocontexts[OCON_IBENDPORT]; in write_selinux_ibendport_rules_to_cil() [all …]
|
D | services.c | 1883 c = policydb->ocontexts[OCON_FS]; in sepol_fs_sid() 1924 c = policydb->ocontexts[OCON_IBPKEY]; in sepol_ibpkey_sid() 1961 c = policydb->ocontexts[OCON_IBENDPORT]; in sepol_ibendport_sid() 1999 c = policydb->ocontexts[OCON_PORT]; in sepol_port_sid() 2038 c = policydb->ocontexts[OCON_NETIF]; in sepol_netif_sid() 2107 c = policydb->ocontexts[OCON_NODE]; in sepol_node_sid() 2122 c = policydb->ocontexts[OCON_NODE6]; in sepol_node_sid() 2314 c = policydb->ocontexts[OCON_FSUSE]; in sepol_fs_use()
|
D | policydb.c | 1409 void ocontext_selinux_free(ocontext_t **ocontexts) in ocontext_selinux_free() argument 1415 c = ocontexts[i]; in ocontext_selinux_free() 1431 void ocontext_xen_free(ocontext_t **ocontexts) in ocontext_xen_free() argument 1437 c = ocontexts[i]; in ocontext_xen_free() 1496 ocontext_selinux_free(p->ocontexts); in policydb_destroy() 1498 ocontext_xen_free(p->ocontexts); in policydb_destroy() 1590 head = p->ocontexts[OCON_ISID]; in policydb_load_isids() 2686 p->ocontexts[i] = c; in ocontext_read_xen() 2796 p->ocontexts[i] = c; in ocontext_read_selinux()
|
D | write.c | 1285 for (c = p->ocontexts[i]; c; c = c->next) in ocontext_write_xen() 1291 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_xen() 1384 for (c = p->ocontexts[i]; c; c = c->next) in ocontext_write_selinux() 1390 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_selinux()
|
D | expand.c | 2126 for (c = state->base->ocontexts[i]; c; c = c->next) { in ocontext_copy_xen() 2136 state->out->ocontexts[i] = n; in ocontext_copy_xen() 2192 for (c = state->base->ocontexts[i]; c; c = c->next) { in ocontext_copy_selinux() 2202 state->out->ocontexts[i] = n; in ocontext_copy_selinux()
|
D | module_to_cil.c | 2974 rc = ocon_funcs[ocon](pdb, pdb->ocontexts[ocon]); in ocontexts_to_cil()
|
/external/selinux/checkpolicy/ |
D | policy_define.c | 315 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid() 330 policydbp->ocontexts[OCON_ISID] = newc; in define_initial_sid() 4603 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid_context() 4669 head = policydbp->ocontexts[OCON_FS]; in define_fs_context() 4684 policydbp->ocontexts[OCON_FS] = newc; in define_fs_context() 4720 head = policydbp->ocontexts[OCON_XEN_PIRQ]; in define_pirq_context() 4734 policydbp->ocontexts[OCON_XEN_PIRQ] = newc; in define_pirq_context() 4781 head = policydbp->ocontexts[OCON_XEN_IOMEM]; in define_iomem_context() 4798 policydbp->ocontexts[OCON_XEN_IOMEM] = newc; in define_iomem_context() 4845 head = policydbp->ocontexts[OCON_XEN_IOPORT]; in define_ioport_context() [all …]
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 3118 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_ISID], &tail); in cil_sidorder_to_policydb() 3244 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBPKEY], &tail); in cil_ibpkeycon_to_policydb() 3277 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_PORT], &tail); in cil_portcon_to_policydb() 3320 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NETIF], &tail); in cil_netifcon_to_policydb() 3350 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBENDPORT], &tail); in cil_ibendportcon_to_policydb() 3379 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE], &tail); in cil_nodecon_to_policydb() 3383 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE6], &tail6); in cil_nodecon_to_policydb() 3411 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_FSUSE], &tail); in cil_fsuse_to_policydb() 3480 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_PIRQ], &tail); in cil_pirqcon_to_policydb() 3504 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_IOMEM], &tail); in cil_iomemcon_to_policydb() [all …]
|
/external/selinux/checkpolicy/test/ |
D | dismod.c | 444 for (cur = p->ocontexts[OCON_ISID]; cur != NULL; cur = cur->next) { in display_initial_sids() 453 for (cur = p->ocontexts[OCON_POLICYISID]; cur != NULL; cur = cur->next) { in display_initial_sids()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 581 ocontext_t *ocontexts[OCON_NUM]; member
|