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()
139 ocontext_t *c, *head; in sepol_iface_query()
171 ocontext_t *head, *prev, *c, *iface = NULL; in sepol_iface_modify()
223 ocontext_t *c, *head; in sepol_iface_count()
242 ocontext_t *c, *head; in sepol_iface_iterate()
Dports.c50 ocontext_t ** port, const sepol_port_t * data) in port_from_record()
53 ocontext_t *tmp_port = NULL; in port_from_record()
61 tmp_port = (ocontext_t *) calloc(1, sizeof(ocontext_t)); in port_from_record()
109 ocontext_t * port, sepol_port_t ** record) in port_to_record()
155 ocontext_t *c, *head; in sepol_port_count()
174 ocontext_t *c, *head; in sepol_port_exists()
212 ocontext_t *c, *head; in sepol_port_query()
252 ocontext_t *port = NULL; in sepol_port_modify()
289 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()
175 ocontext_t *c, *head; in sepol_node_exists()
235 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()
Dservices.c1880 ocontext_t *c; in sepol_fs_sid()
1922 ocontext_t *c; in sepol_port_sid()
1962 ocontext_t *c; in sepol_netif_sid()
2020 ocontext_t *c; in sepol_node_sid()
2194 ocontext_t *c; in sepol_genfs_sid()
2238 ocontext_t *c; in sepol_fs_use()
Dpolicydb.c1370 void ocontext_selinux_free(ocontext_t **ocontexts) in ocontext_selinux_free()
1372 ocontext_t *c, *ctmp; in ocontext_selinux_free()
1390 void ocontext_xen_free(ocontext_t **ocontexts) in ocontext_xen_free()
1392 ocontext_t *c, *ctmp; in ocontext_xen_free()
1414 ocontext_t *c, *ctmp; in policydb_destroy()
1550 ocontext_t *head, *c; in policydb_load_isids()
2623 ocontext_t *l, *c; in ocontext_read_xen()
2634 c = calloc(1, sizeof(ocontext_t)); in ocontext_read_xen()
2732 ocontext_t *l, *c; in ocontext_read_selinux()
2743 c = calloc(1, sizeof(ocontext_t)); in ocontext_read_selinux()
[all …]
Dexpand.c2115 ocontext_t *c, *n, *l; in ocontext_copy_xen()
2120 n = malloc(sizeof(ocontext_t)); in ocontext_copy_xen()
2125 memset(n, 0, sizeof(ocontext_t)); in ocontext_copy_xen()
2181 ocontext_t *c, *n, *l; in ocontext_copy_selinux()
2186 n = malloc(sizeof(ocontext_t)); in ocontext_copy_selinux()
2191 memset(n, 0, sizeof(ocontext_t)); in ocontext_copy_selinux()
2276 ocontext_t *c, *newc, *l; in genfs_copy()
2301 newc = malloc(sizeof(ocontext_t)); in genfs_copy()
2306 memset(newc, 0, sizeof(ocontext_t)); in genfs_copy()
Dwrite.c1280 ocontext_t *c; in ocontext_write_xen()
1379 ocontext_t *c; in ocontext_write_selinux()
1483 ocontext_t *c; in genfs_write()
/external/selinux/checkpolicy/
Dpolicy_define.c290 ocontext_t *newc = 0, *c, *head; in define_initial_sid()
303 newc = (ocontext_t *) malloc(sizeof(ocontext_t)); in define_initial_sid()
308 memset(newc, 0, sizeof(ocontext_t)); in define_initial_sid()
4578 ocontext_t *c, *head; in define_initial_sid_context()
4619 ocontext_t *newc, *c, *head; in define_fs_context()
4632 newc = (ocontext_t *) malloc(sizeof(ocontext_t)); in define_fs_context()
4637 memset(newc, 0, sizeof(ocontext_t)); in define_fs_context()
4680 ocontext_t *newc, *c, *l, *head; in define_pirq_context()
4695 newc = malloc(sizeof(ocontext_t)); in define_pirq_context()
4700 memset(newc, 0, sizeof(ocontext_t)); in define_pirq_context()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_binary.c230 static ocontext_t *cil_add_ocontext(ocontext_t **head, ocontext_t **tail) in cil_add_ocontext()
232 ocontext_t *new = cil_malloc(sizeof(ocontext_t)); in cil_add_ocontext()
233 memset(new, 0, sizeof(ocontext_t)); in cil_add_ocontext()
3092 ocontext_t *tail = NULL; in cil_sidorder_to_policydb()
3104 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_ISID], &tail); in cil_sidorder_to_policydb()
3225 ocontext_t *tail = NULL; in cil_portcon_to_policydb()
3229 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_PORT], &tail); in cil_portcon_to_policydb()
3266 ocontext_t *tail = NULL; in cil_netifcon_to_policydb()
3269 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_NETIF], &tail); in cil_netifcon_to_policydb()
3296 ocontext_t *tail = NULL; in cil_nodecon_to_policydb()
[all …]
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h369 } ocontext_t; typedef
568 ocontext_t *ocontexts[OCON_NUM];
/external/selinux/checkpolicy/test/
Ddismod.c415 ocontext_t *cur; in display_initial_sids()