Home
last modified time | relevance | path

Searched refs:ocontexts (Results 1 – 19 of 19) sorted by relevance

/third_party/selinux/libsepol/src/
Dnodes.c155 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 …]
Dinterfaces.c120 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()
Dibendports.c116 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()
Dkernel_to_common.c658 rc = sort_ocontext_data(&pdb->ocontexts[5], fsuse_data_cmp); in sort_ocontexts()
663 rc = sort_ocontext_data(&pdb->ocontexts[2], portcon_data_cmp); in sort_ocontexts()
668 rc = sort_ocontext_data(&pdb->ocontexts[3], netif_data_cmp); in sort_ocontexts()
673 rc = sort_ocontext_data(&pdb->ocontexts[4], node_data_cmp); in sort_ocontexts()
678 rc = sort_ocontext_data(&pdb->ocontexts[6], node6_data_cmp); in sort_ocontexts()
683 rc = sort_ocontext_data(&pdb->ocontexts[OCON_IBPKEY], ibpkey_data_cmp); in sort_ocontexts()
688 rc = sort_ocontext_data(&pdb->ocontexts[OCON_IBENDPORT], ibendport_data_cmp); in sort_ocontexts()
693 rc = sort_ocontext_data(&pdb->ocontexts[1], pirq_data_cmp); in sort_ocontexts()
698 rc = sort_ocontext_data(&pdb->ocontexts[2], ioport_data_cmp); in sort_ocontexts()
703 rc = sort_ocontext_data(&pdb->ocontexts[3], iomem_data_cmp); in sort_ocontexts()
[all …]
Dibpkeys.c110 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()
Dports.c165 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()
Dkernel_to_conf.c510 pdb->ocontexts[0]); in write_sid_decl_rules_to_conf()
513 pdb->ocontexts[0]); in write_sid_decl_rules_to_conf()
2446 for (isid = pdb->ocontexts[0]; isid != NULL; isid = isid->next) { in write_sid_context_rules_to_conf()
2501 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_conf()
2620 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_conf()
2671 for (netif = pdb->ocontexts[3]; netif != NULL; netif = netif->next) { in write_selinux_netif_rules_to_conf()
2707 for (node = pdb->ocontexts[4]; node != NULL; node = node->next) { in write_selinux_node_rules_to_conf()
2748 for (node6 = pdb->ocontexts[6]; node6 != NULL; node6 = node6->next) { in write_selinux_node6_rules_to_conf()
2791 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_conf()
2844 for (ibendportcon = pdb->ocontexts[OCON_IBENDPORT]; in write_selinux_ibendport_rules_to_conf()
[all …]
Dkernel_to_cil.c631 pdb->ocontexts[0]); in write_sid_decl_rules_to_cil()
634 pdb->ocontexts[0]); in write_sid_decl_rules_to_cil()
2578 for (isid = pdb->ocontexts[0]; isid != NULL; isid = isid->next) { in write_sid_context_rules_to_cil()
2633 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_cil()
2752 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_cil()
2803 for (netif = pdb->ocontexts[3]; netif != NULL; netif = netif->next) { in write_selinux_netif_rules_to_cil()
2839 for (node = pdb->ocontexts[4]; node != NULL; node = node->next) { in write_selinux_node_rules_to_cil()
2879 for (node = pdb->ocontexts[6]; node != NULL; node = node->next) { in write_selinux_node6_rules_to_cil()
2922 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_cil()
2974 for (ibendportcon = pdb->ocontexts[OCON_IBENDPORT]; in write_selinux_ibendport_rules_to_cil()
[all …]
Dservices.c1866 c = policydb->ocontexts[OCON_FS]; in sepol_fs_sid()
1907 c = policydb->ocontexts[OCON_IBPKEY]; in sepol_ibpkey_sid()
1944 c = policydb->ocontexts[OCON_IBENDPORT]; in sepol_ibendport_sid()
1982 c = policydb->ocontexts[OCON_PORT]; in sepol_port_sid()
2021 c = policydb->ocontexts[OCON_NETIF]; in sepol_netif_sid()
2090 c = policydb->ocontexts[OCON_NODE]; in sepol_node_sid()
2105 c = policydb->ocontexts[OCON_NODE6]; in sepol_node_sid()
2287 c = policydb->ocontexts[OCON_FSUSE]; in sepol_fs_use()
Dpolicydb.c1443 static void ocontext_selinux_free(ocontext_t **ocontexts) in ocontext_selinux_free() argument
1449 c = ocontexts[i]; in ocontext_selinux_free()
1465 static void ocontext_xen_free(ocontext_t **ocontexts) in ocontext_xen_free() argument
1471 c = ocontexts[i]; in ocontext_xen_free()
1530 ocontext_selinux_free(p->ocontexts); in policydb_destroy()
1532 ocontext_xen_free(p->ocontexts); in policydb_destroy()
1624 head = p->ocontexts[OCON_ISID]; in policydb_load_isids()
2894 p->ocontexts[i] = c; in ocontext_read_xen()
3006 p->ocontexts[i] = c; in ocontext_read_selinux()
Dwrite.c1359 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_xen()
1372 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_xen()
1467 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_selinux()
1480 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_selinux()
Dexpand.c2124 for (c = state->base->ocontexts[i]; c; c = c->next) { in ocontext_copy_xen()
2140 state->out->ocontexts[i] = n; in ocontext_copy_xen()
2190 for (c = state->base->ocontexts[i]; c; c = c->next) { in ocontext_copy_selinux()
2206 state->out->ocontexts[i] = n; in ocontext_copy_selinux()
Dpolicydb_validate.c1133 for (octx = p->ocontexts[i]; octx; octx = octx->next) { in validate_ocontexts()
Dmodule_to_cil.c2960 rc = ocon_funcs[ocon](pdb, pdb->ocontexts[ocon]); in ocontexts_to_cil()
/third_party/selinux/checkpolicy/
Dpolicy_define.c310 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid()
325 policydbp->ocontexts[OCON_ISID] = newc; in define_initial_sid()
4584 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid_context()
4650 head = policydbp->ocontexts[OCON_FS]; in define_fs_context()
4665 policydbp->ocontexts[OCON_FS] = newc; in define_fs_context()
4701 head = policydbp->ocontexts[OCON_XEN_PIRQ]; in define_pirq_context()
4715 policydbp->ocontexts[OCON_XEN_PIRQ] = newc; in define_pirq_context()
4762 head = policydbp->ocontexts[OCON_XEN_IOMEM]; in define_iomem_context()
4779 policydbp->ocontexts[OCON_XEN_IOMEM] = newc; in define_iomem_context()
4826 head = policydbp->ocontexts[OCON_XEN_IOPORT]; in define_ioport_context()
[all …]
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c3231 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_ISID], &tail); in cil_sidorder_to_policydb()
3345 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBPKEY], &tail); in cil_ibpkeycon_to_policydb()
3378 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_PORT], &tail); in cil_portcon_to_policydb()
3421 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NETIF], &tail); in cil_netifcon_to_policydb()
3451 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBENDPORT], &tail); in cil_ibendportcon_to_policydb()
3480 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE], &tail); in cil_nodecon_to_policydb()
3484 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE6], &tail6); in cil_nodecon_to_policydb()
3512 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_FSUSE], &tail); in cil_fsuse_to_policydb()
3618 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_PIRQ], &tail); in cil_pirqcon_to_policydb()
3642 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_IOMEM], &tail); in cil_iomemcon_to_policydb()
[all …]
/third_party/selinux/checkpolicy/test/
Ddismod.c443 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/
Dpolicydb.h584 ocontext_t *ocontexts[OCON_NUM]; member
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h54246 struct ocontext *ocontexts[9]; member