Home
last modified time | relevance | path

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

/external/selinux/libsepol/src/
Dibendports.c16 ocontext_t **ibendport, in ibendport_from_record()
19 ocontext_t *tmp_ibendport = NULL; in ibendport_from_record()
24 tmp_ibendport = (ocontext_t *)calloc(1, sizeof(ocontext_t)); in ibendport_from_record()
73 ocontext_t *ibendport, in ibendport_to_record()
113 ocontext_t *c, *head; in sepol_ibendport_count()
131 ocontext_t *c, *head; in sepol_ibendport_exists()
159 ocontext_t *c, *head; in sepol_ibendport_query()
194 ocontext_t *ibendport = NULL; in sepol_ibendport_modify()
225 ocontext_t *c, *head; in sepol_ibendport_iterate()
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()
Dibpkeys.c17 ocontext_t **ibpkey, const sepol_ibpkey_t *data) in ibpkey_from_record()
19 ocontext_t *tmp_ibpkey = NULL; in ibpkey_from_record()
25 tmp_ibpkey = (ocontext_t *)calloc(1, sizeof(*tmp_ibpkey)); in ibpkey_from_record()
69 ocontext_t *ibpkey, sepol_ibpkey_t **record) in ibpkey_to_record()
106 ocontext_t *c, *head; in sepol_ibpkey_count()
124 ocontext_t *c, *head; in sepol_ibpkey_exists()
154 ocontext_t *c, *head; in sepol_ibpkey_query()
190 ocontext_t *ibpkey = NULL; in sepol_ibpkey_modify()
221 ocontext_t *c, *head; in sepol_ibpkey_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.c1881 ocontext_t *c; in sepol_fs_sid()
1921 ocontext_t *c; in sepol_ibpkey_sid()
1958 ocontext_t *c; in sepol_ibendport_sid()
1996 ocontext_t *c; in sepol_port_sid()
2036 ocontext_t *c; in sepol_netif_sid()
2094 ocontext_t *c; in sepol_node_sid()
2268 ocontext_t *c; in sepol_genfs_sid()
2312 ocontext_t *c; in sepol_fs_use()
Dpolicydb.c1408 void ocontext_selinux_free(ocontext_t **ocontexts) in ocontext_selinux_free()
1410 ocontext_t *c, *ctmp; in ocontext_selinux_free()
1430 void ocontext_xen_free(ocontext_t **ocontexts) in ocontext_xen_free()
1432 ocontext_t *c, *ctmp; in ocontext_xen_free()
1454 ocontext_t *c, *ctmp; in policydb_destroy()
1590 ocontext_t *head, *c; in policydb_load_isids()
2676 ocontext_t *l, *c; in ocontext_read_xen()
2687 c = calloc(1, sizeof(ocontext_t)); in ocontext_read_xen()
2785 ocontext_t *l, *c; in ocontext_read_selinux()
2796 c = calloc(1, sizeof(ocontext_t)); in ocontext_read_selinux()
[all …]
Dexpand.c2116 ocontext_t *c, *n, *l; in ocontext_copy_xen()
2121 n = malloc(sizeof(ocontext_t)); in ocontext_copy_xen()
2126 memset(n, 0, sizeof(ocontext_t)); in ocontext_copy_xen()
2182 ocontext_t *c, *n, *l; in ocontext_copy_selinux()
2187 n = malloc(sizeof(ocontext_t)); in ocontext_copy_selinux()
2192 memset(n, 0, sizeof(ocontext_t)); in ocontext_copy_selinux()
2291 ocontext_t *c, *newc, *l; in genfs_copy()
2316 newc = malloc(sizeof(ocontext_t)); in genfs_copy()
2321 memset(newc, 0, sizeof(ocontext_t)); in genfs_copy()
Dwrite.c1282 ocontext_t *c; in ocontext_write_xen()
1381 ocontext_t *c; in ocontext_write_selinux()
1514 ocontext_t *c; in genfs_write()
/external/selinux/checkpolicy/
Dpolicy_define.c291 ocontext_t *newc = 0, *c, *head; in define_initial_sid()
304 newc = (ocontext_t *) malloc(sizeof(ocontext_t)); in define_initial_sid()
309 memset(newc, 0, sizeof(ocontext_t)); in define_initial_sid()
4581 ocontext_t *c, *head; in define_initial_sid_context()
4622 ocontext_t *newc, *c, *head; in define_fs_context()
4635 newc = (ocontext_t *) malloc(sizeof(ocontext_t)); in define_fs_context()
4640 memset(newc, 0, sizeof(ocontext_t)); in define_fs_context()
4683 ocontext_t *newc, *c, *l, *head; in define_pirq_context()
4698 newc = malloc(sizeof(ocontext_t)); in define_pirq_context()
4703 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_ibpkeycon_to_policydb()
3230 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBPKEY], &tail); in cil_ibpkeycon_to_policydb()
3259 ocontext_t *tail = NULL; in cil_portcon_to_policydb()
3263 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_PORT], &tail); in cil_portcon_to_policydb()
3300 ocontext_t *tail = NULL; in cil_netifcon_to_policydb()
[all …]
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h381 } ocontext_t; typedef
581 ocontext_t *ocontexts[OCON_NUM];
/external/selinux/checkpolicy/test/
Ddismod.c440 ocontext_t *cur; in display_initial_sids()