/third_party/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 | 649 rc = sort_ocontext_data(&pdb->ocontexts[5], fsuse_data_cmp); in sort_ocontexts() 654 rc = sort_ocontext_data(&pdb->ocontexts[2], portcon_data_cmp); in sort_ocontexts() 659 rc = sort_ocontext_data(&pdb->ocontexts[3], netif_data_cmp); in sort_ocontexts() 664 rc = sort_ocontext_data(&pdb->ocontexts[4], node_data_cmp); in sort_ocontexts() 669 rc = sort_ocontext_data(&pdb->ocontexts[6], node6_data_cmp); in sort_ocontexts() 674 rc = sort_ocontext_data(&pdb->ocontexts[OCON_IBPKEY], ibpkey_data_cmp); in sort_ocontexts() 679 rc = sort_ocontext_data(&pdb->ocontexts[OCON_IBENDPORT], ibendport_data_cmp); in sort_ocontexts() 684 rc = sort_ocontext_data(&pdb->ocontexts[1], pirq_data_cmp); in sort_ocontexts() 689 rc = sort_ocontext_data(&pdb->ocontexts[2], ioport_data_cmp); in sort_ocontexts() 694 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_cil.c | 614 pdb->ocontexts[0]); in write_sid_decl_rules_to_cil() 617 pdb->ocontexts[0]); in write_sid_decl_rules_to_cil() 2551 for (isid = pdb->ocontexts[0]; isid != NULL; isid = isid->next) { in write_sid_context_rules_to_cil() 2606 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_cil() 2694 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_cil() 2745 for (netif = pdb->ocontexts[3]; netif != NULL; netif = netif->next) { in write_selinux_netif_rules_to_cil() 2781 for (node = pdb->ocontexts[4]; node != NULL; node = node->next) { in write_selinux_node_rules_to_cil() 2821 for (node = pdb->ocontexts[6]; node != NULL; node = node->next) { in write_selinux_node6_rules_to_cil() 2864 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_cil() 2916 for (ibendportcon = pdb->ocontexts[OCON_IBENDPORT]; in write_selinux_ibendport_rules_to_cil() [all …]
|
D | kernel_to_conf.c | 499 pdb->ocontexts[0]); in write_sid_decl_rules_to_conf() 502 pdb->ocontexts[0]); in write_sid_decl_rules_to_conf() 2424 for (isid = pdb->ocontexts[0]; isid != NULL; isid = isid->next) { in write_sid_context_rules_to_conf() 2479 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_conf() 2567 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_conf() 2618 for (netif = pdb->ocontexts[3]; netif != NULL; netif = netif->next) { in write_selinux_netif_rules_to_conf() 2654 for (node = pdb->ocontexts[4]; node != NULL; node = node->next) { in write_selinux_node_rules_to_conf() 2695 for (node6 = pdb->ocontexts[6]; node6 != NULL; node6 = node6->next) { in write_selinux_node6_rules_to_conf() 2738 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_conf() 2791 for (ibendportcon = pdb->ocontexts[OCON_IBENDPORT]; in write_selinux_ibendport_rules_to_conf() [all …]
|
D | services.c | 1859 c = policydb->ocontexts[OCON_FS]; in sepol_fs_sid() 1900 c = policydb->ocontexts[OCON_IBPKEY]; in sepol_ibpkey_sid() 1937 c = policydb->ocontexts[OCON_IBENDPORT]; in sepol_ibendport_sid() 1975 c = policydb->ocontexts[OCON_PORT]; in sepol_port_sid() 2014 c = policydb->ocontexts[OCON_NETIF]; in sepol_netif_sid() 2083 c = policydb->ocontexts[OCON_NODE]; in sepol_node_sid() 2098 c = policydb->ocontexts[OCON_NODE6]; in sepol_node_sid() 2286 c = policydb->ocontexts[OCON_FSUSE]; in sepol_fs_use()
|
D | policydb.c | 1430 static void ocontext_selinux_free(ocontext_t **ocontexts) in ocontext_selinux_free() argument 1436 c = ocontexts[i]; in ocontext_selinux_free() 1452 static void ocontext_xen_free(ocontext_t **ocontexts) in ocontext_xen_free() argument 1458 c = ocontexts[i]; in ocontext_xen_free() 1517 ocontext_selinux_free(p->ocontexts); in policydb_destroy() 1519 ocontext_xen_free(p->ocontexts); in policydb_destroy() 1611 head = p->ocontexts[OCON_ISID]; in policydb_load_isids() 2874 p->ocontexts[i] = c; in ocontext_read_xen() 2984 p->ocontexts[i] = c; in ocontext_read_selinux()
|
D | write.c | 1357 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_xen() 1370 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_xen() 1465 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_selinux() 1478 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_selinux()
|
D | expand.c | 2099 for (c = state->base->ocontexts[i]; c; c = c->next) { in ocontext_copy_xen() 2115 state->out->ocontexts[i] = n; in ocontext_copy_xen() 2165 for (c = state->base->ocontexts[i]; c; c = c->next) { in ocontext_copy_selinux() 2181 state->out->ocontexts[i] = n; in ocontext_copy_selinux()
|
D | module_to_cil.c | 2948 rc = ocon_funcs[ocon](pdb, pdb->ocontexts[ocon]); in ocontexts_to_cil()
|
/third_party/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() 4528 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid_context() 4594 head = policydbp->ocontexts[OCON_FS]; in define_fs_context() 4609 policydbp->ocontexts[OCON_FS] = newc; in define_fs_context() 4645 head = policydbp->ocontexts[OCON_XEN_PIRQ]; in define_pirq_context() 4659 policydbp->ocontexts[OCON_XEN_PIRQ] = newc; in define_pirq_context() 4706 head = policydbp->ocontexts[OCON_XEN_IOMEM]; in define_iomem_context() 4723 policydbp->ocontexts[OCON_XEN_IOMEM] = newc; in define_iomem_context() 4770 head = policydbp->ocontexts[OCON_XEN_IOPORT]; in define_ioport_context() [all …]
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 3143 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_ISID], &tail); in cil_sidorder_to_policydb() 3248 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBPKEY], &tail); in cil_ibpkeycon_to_policydb() 3281 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_PORT], &tail); in cil_portcon_to_policydb() 3324 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NETIF], &tail); in cil_netifcon_to_policydb() 3354 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBENDPORT], &tail); in cil_ibendportcon_to_policydb() 3383 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE], &tail); in cil_nodecon_to_policydb() 3387 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE6], &tail6); in cil_nodecon_to_policydb() 3415 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_FSUSE], &tail); in cil_fsuse_to_policydb() 3484 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_PIRQ], &tail); in cil_pirqcon_to_policydb() 3508 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_IOMEM], &tail); in cil_iomemcon_to_policydb() [all …]
|
/third_party/selinux/checkpolicy/test/ |
D | dismod.c | 443 for (cur = p->ocontexts[OCON_ISID]; cur != NULL; cur = cur->next) { in display_initial_sids() 452 for (cur = p->ocontexts[OCON_POLICYISID]; cur != NULL; cur = cur->next) { in display_initial_sids()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 583 ocontext_t *ocontexts[OCON_NUM]; member
|