Home
last modified time | relevance | path

Searched refs:ocontext_t (Results 1 – 11 of 11) sorted by relevance

/external/selinux/libsepol/src/
Dinterfaces.c14 ocontext_t ** iface, const sepol_iface_t * record) in iface_from_record()
17 ocontext_t *tmp_iface = NULL; in iface_from_record()
20 tmp_iface = (ocontext_t *) calloc(1, sizeof(ocontext_t)); in iface_from_record()
68 ocontext_t * iface, sepol_iface_t ** record) in iface_to_record()
115 ocontext_t *c, *head; in sepol_iface_exists()
140 ocontext_t *c, *head; in sepol_iface_query()
172 ocontext_t *head, *prev, *c, *iface = NULL; in sepol_iface_modify()
224 ocontext_t *c, *head; in sepol_iface_count()
244 ocontext_t *c, *head; in sepol_iface_iterate()
Dports.c43 ocontext_t ** port, const sepol_port_t * data) in port_from_record()
46 ocontext_t *tmp_port = NULL; in port_from_record()
54 tmp_port = (ocontext_t *) calloc(1, sizeof(ocontext_t)); in port_from_record()
102 ocontext_t * port, sepol_port_t ** record) in port_to_record()
148 ocontext_t *c, *head; in sepol_port_count()
168 ocontext_t *c, *head; in sepol_port_exists()
206 ocontext_t *c, *head; in sepol_port_query()
246 ocontext_t *port = NULL; in sepol_port_modify()
283 ocontext_t *c, *head; in sepol_port_iterate()
Dnodes.c16 ocontext_t ** node, const sepol_node_t * data) in node_from_record()
19 ocontext_t *tmp_node = NULL; in node_from_record()
23 tmp_node = (ocontext_t *) calloc(1, sizeof(ocontext_t)); in node_from_record()
85 ocontext_t * node, int proto, sepol_node_t ** record) in node_to_record()
152 ocontext_t *c, *head; in sepol_node_count()
176 ocontext_t *c, *head; in sepol_node_exists()
236 ocontext_t *c, *head; in sepol_node_query()
302 ocontext_t *node = NULL; in sepol_node_modify()
352 ocontext_t *c, *head; in sepol_node_iterate()
Dpolicydb.c1245 void ocontext_selinux_free(ocontext_t **ocontexts) in ocontext_selinux_free()
1247 ocontext_t *c, *ctmp; in ocontext_selinux_free()
1265 void ocontext_xen_free(ocontext_t **ocontexts) in ocontext_xen_free()
1267 ocontext_t *c, *ctmp; in ocontext_xen_free()
1289 ocontext_t *c, *ctmp; in policydb_destroy()
1443 ocontext_t *head, *c; in policydb_load_isids()
2482 ocontext_t *l, *c; in ocontext_read_xen()
2493 c = calloc(1, sizeof(ocontext_t)); in ocontext_read_xen()
2588 ocontext_t *l, *c; in ocontext_read_selinux()
2599 c = calloc(1, sizeof(ocontext_t)); in ocontext_read_selinux()
[all …]
Dservices.c1780 ocontext_t *c; in sepol_fs_sid()
1822 ocontext_t *c; in sepol_port_sid()
1862 ocontext_t *c; in sepol_netif_sid()
1920 ocontext_t *c; in sepol_node_sid()
2094 ocontext_t *c; in sepol_genfs_sid()
2138 ocontext_t *c; in sepol_fs_use()
Dexpand.c2099 ocontext_t *c, *n, *l; in ocontext_copy_xen()
2104 n = malloc(sizeof(ocontext_t)); in ocontext_copy_xen()
2109 memset(n, 0, sizeof(ocontext_t)); in ocontext_copy_xen()
2165 ocontext_t *c, *n, *l; in ocontext_copy_selinux()
2170 n = malloc(sizeof(ocontext_t)); in ocontext_copy_selinux()
2175 memset(n, 0, sizeof(ocontext_t)); in ocontext_copy_selinux()
2260 ocontext_t *c, *newc, *l; in genfs_copy()
2285 newc = malloc(sizeof(ocontext_t)); in genfs_copy()
2290 memset(newc, 0, sizeof(ocontext_t)); in genfs_copy()
Dwrite.c1249 ocontext_t *c; in ocontext_write_xen()
1348 ocontext_t *c; in ocontext_write_selinux()
1452 ocontext_t *c; in genfs_write()
/external/selinux/checkpolicy/
Dpolicy_define.c287 ocontext_t *newc = 0, *c, *head; in define_initial_sid()
300 newc = (ocontext_t *) malloc(sizeof(ocontext_t)); in define_initial_sid()
305 memset(newc, 0, sizeof(ocontext_t)); in define_initial_sid()
4453 ocontext_t *c, *head; in define_initial_sid_context()
4494 ocontext_t *newc, *c, *head; in define_fs_context()
4507 newc = (ocontext_t *) malloc(sizeof(ocontext_t)); in define_fs_context()
4512 memset(newc, 0, sizeof(ocontext_t)); in define_fs_context()
4555 ocontext_t *newc, *c, *l, *head; in define_pirq_context()
4570 newc = malloc(sizeof(ocontext_t)); in define_pirq_context()
4575 memset(newc, 0, sizeof(ocontext_t)); in define_pirq_context()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_binary.c227 static ocontext_t *cil_add_ocontext(ocontext_t **head, ocontext_t **tail) in cil_add_ocontext()
229 ocontext_t *new = cil_malloc(sizeof(ocontext_t)); in cil_add_ocontext()
230 memset(new, 0, sizeof(ocontext_t)); in cil_add_ocontext()
2902 ocontext_t *tail = NULL; in cil_sidorder_to_policydb()
2914 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_ISID], &tail); in cil_sidorder_to_policydb()
3025 ocontext_t *tail = NULL; in cil_portcon_to_policydb()
3029 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_PORT], &tail); in cil_portcon_to_policydb()
3063 ocontext_t *tail = NULL; in cil_netifcon_to_policydb()
3066 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NETIF], &tail); in cil_netifcon_to_policydb()
3093 ocontext_t *tail = NULL; in cil_nodecon_to_policydb()
[all …]
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h364 } ocontext_t; typedef
566 ocontext_t *ocontexts[OCON_NUM];
/external/selinux/checkpolicy/test/
Ddismod.c415 ocontext_t *cur; in display_initial_sids()