Home
last modified time | relevance | path

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

/external/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.c651 rc = sort_ocontext_data(&pdb->ocontexts[5], fsuse_data_cmp); in sort_ocontexts()
656 rc = sort_ocontext_data(&pdb->ocontexts[2], portcon_data_cmp); in sort_ocontexts()
661 rc = sort_ocontext_data(&pdb->ocontexts[3], netif_data_cmp); in sort_ocontexts()
666 rc = sort_ocontext_data(&pdb->ocontexts[4], node_data_cmp); in sort_ocontexts()
671 rc = sort_ocontext_data(&pdb->ocontexts[6], node6_data_cmp); in sort_ocontexts()
676 rc = sort_ocontext_data(&pdb->ocontexts[OCON_IBPKEY], ibpkey_data_cmp); in sort_ocontexts()
681 rc = sort_ocontext_data(&pdb->ocontexts[OCON_IBENDPORT], ibendport_data_cmp); in sort_ocontexts()
686 rc = sort_ocontext_data(&pdb->ocontexts[1], pirq_data_cmp); in sort_ocontexts()
691 rc = sort_ocontext_data(&pdb->ocontexts[2], ioport_data_cmp); in sort_ocontexts()
696 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.c495 pdb->ocontexts[0]); in write_sid_decl_rules_to_conf()
498 pdb->ocontexts[0]); in write_sid_decl_rules_to_conf()
2381 for (isid = pdb->ocontexts[0]; isid != NULL; isid = isid->next) { in write_sid_context_rules_to_conf()
2436 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_conf()
2524 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_conf()
2575 for (netif = pdb->ocontexts[3]; netif != NULL; netif = netif->next) { in write_selinux_netif_rules_to_conf()
2611 for (node = pdb->ocontexts[4]; node != NULL; node = node->next) { in write_selinux_node_rules_to_conf()
2652 for (node6 = pdb->ocontexts[6]; node6 != NULL; node6 = node6->next) { in write_selinux_node6_rules_to_conf()
2695 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_conf()
2749 for (ibendportcon = pdb->ocontexts[OCON_IBENDPORT]; in write_selinux_ibendport_rules_to_conf()
[all …]
Dkernel_to_cil.c610 pdb->ocontexts[0]); in write_sid_decl_rules_to_cil()
613 pdb->ocontexts[0]); in write_sid_decl_rules_to_cil()
2509 for (isid = pdb->ocontexts[0]; isid != NULL; isid = isid->next) { in write_sid_context_rules_to_cil()
2564 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_cil()
2652 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_cil()
2703 for (netif = pdb->ocontexts[3]; netif != NULL; netif = netif->next) { in write_selinux_netif_rules_to_cil()
2739 for (node = pdb->ocontexts[4]; node != NULL; node = node->next) { in write_selinux_node_rules_to_cil()
2779 for (node = pdb->ocontexts[6]; node != NULL; node = node->next) { in write_selinux_node6_rules_to_cil()
2822 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_cil()
2875 for (ibendportcon = pdb->ocontexts[OCON_IBENDPORT]; in write_selinux_ibendport_rules_to_cil()
[all …]
Dservices.c1879 c = policydb->ocontexts[OCON_FS]; in sepol_fs_sid()
1920 c = policydb->ocontexts[OCON_IBPKEY]; in sepol_ibpkey_sid()
1957 c = policydb->ocontexts[OCON_IBENDPORT]; in sepol_ibendport_sid()
1995 c = policydb->ocontexts[OCON_PORT]; in sepol_port_sid()
2034 c = policydb->ocontexts[OCON_NETIF]; in sepol_netif_sid()
2103 c = policydb->ocontexts[OCON_NODE]; in sepol_node_sid()
2118 c = policydb->ocontexts[OCON_NODE6]; in sepol_node_sid()
2306 c = policydb->ocontexts[OCON_FSUSE]; in sepol_fs_use()
Dpolicydb.c1431 void ocontext_selinux_free(ocontext_t **ocontexts) in ocontext_selinux_free() argument
1437 c = ocontexts[i]; in ocontext_selinux_free()
1453 void ocontext_xen_free(ocontext_t **ocontexts) in ocontext_xen_free() argument
1459 c = ocontexts[i]; in ocontext_xen_free()
1518 ocontext_selinux_free(p->ocontexts); in policydb_destroy()
1520 ocontext_xen_free(p->ocontexts); in policydb_destroy()
1612 head = p->ocontexts[OCON_ISID]; in policydb_load_isids()
2704 p->ocontexts[i] = c; in ocontext_read_xen()
2814 p->ocontexts[i] = c; in ocontext_read_selinux()
Dwrite.c1297 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_xen()
1310 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_xen()
1405 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_selinux()
1418 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write_selinux()
Dexpand.c2095 for (c = state->base->ocontexts[i]; c; c = c->next) { in ocontext_copy_xen()
2111 state->out->ocontexts[i] = n; in ocontext_copy_xen()
2161 for (c = state->base->ocontexts[i]; c; c = c->next) { in ocontext_copy_selinux()
2177 state->out->ocontexts[i] = n; in ocontext_copy_selinux()
Dmodule_to_cil.c2938 rc = ocon_funcs[ocon](pdb, pdb->ocontexts[ocon]); in ocontexts_to_cil()
/external/selinux/checkpolicy/
Dpolicy_define.c315 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid()
330 policydbp->ocontexts[OCON_ISID] = newc; in define_initial_sid()
4568 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid_context()
4634 head = policydbp->ocontexts[OCON_FS]; in define_fs_context()
4649 policydbp->ocontexts[OCON_FS] = newc; in define_fs_context()
4685 head = policydbp->ocontexts[OCON_XEN_PIRQ]; in define_pirq_context()
4699 policydbp->ocontexts[OCON_XEN_PIRQ] = newc; in define_pirq_context()
4746 head = policydbp->ocontexts[OCON_XEN_IOMEM]; in define_iomem_context()
4763 policydbp->ocontexts[OCON_XEN_IOMEM] = newc; in define_iomem_context()
4810 head = policydbp->ocontexts[OCON_XEN_IOPORT]; in define_ioport_context()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_binary.c3058 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_ISID], &tail); in cil_sidorder_to_policydb()
3163 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBPKEY], &tail); in cil_ibpkeycon_to_policydb()
3196 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_PORT], &tail); in cil_portcon_to_policydb()
3239 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NETIF], &tail); in cil_netifcon_to_policydb()
3269 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBENDPORT], &tail); in cil_ibendportcon_to_policydb()
3298 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE], &tail); in cil_nodecon_to_policydb()
3302 new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NODE6], &tail6); in cil_nodecon_to_policydb()
3330 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_FSUSE], &tail); in cil_fsuse_to_policydb()
3399 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_PIRQ], &tail); in cil_pirqcon_to_policydb()
3423 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_XEN_IOMEM], &tail); in cil_iomemcon_to_policydb()
[all …]
/external/selinux/checkpolicy/test/
Ddismod.c444 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/
Dpolicydb.h582 ocontext_t *ocontexts[OCON_NUM]; member