/third_party/selinux/libsepol/src/ |
D | ibendports.c | 16 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()
|
D | interfaces.c | 14 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()
|
D | ibpkeys.c | 18 ocontext_t **ibpkey, const sepol_ibpkey_t *data) in ibpkey_from_record() 20 ocontext_t *tmp_ibpkey = NULL; in ibpkey_from_record() 26 tmp_ibpkey = (ocontext_t *)calloc(1, sizeof(*tmp_ibpkey)); in ibpkey_from_record() 70 ocontext_t *ibpkey, sepol_ibpkey_t **record) in ibpkey_to_record() 107 ocontext_t *c, *head; in sepol_ibpkey_count() 125 ocontext_t *c, *head; in sepol_ibpkey_exists() 155 ocontext_t *c, *head; in sepol_ibpkey_query() 191 ocontext_t *ibpkey = NULL; in sepol_ibpkey_modify() 222 ocontext_t *c, *head; in sepol_ibpkey_iterate()
|
D | ports.c | 57 ocontext_t ** port, const sepol_port_t * data) in port_from_record() 60 ocontext_t *tmp_port = NULL; in port_from_record() 68 tmp_port = (ocontext_t *) calloc(1, sizeof(ocontext_t)); in port_from_record() 116 ocontext_t * port, sepol_port_t ** record) in port_to_record() 162 ocontext_t *c, *head; in sepol_port_count() 181 ocontext_t *c, *head; in sepol_port_exists() 219 ocontext_t *c, *head; in sepol_port_query() 259 ocontext_t *port = NULL; in sepol_port_modify() 296 ocontext_t *c, *head; in sepol_port_iterate()
|
D | nodes.c | 16 ocontext_t ** node, const sepol_node_t * data) in node_from_record() 19 ocontext_t *tmp_node = NULL; in node_from_record() 25 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()
|
D | services.c | 1864 ocontext_t *c; in sepol_fs_sid() 1904 ocontext_t *c; in sepol_ibpkey_sid() 1941 ocontext_t *c; in sepol_ibendport_sid() 1979 ocontext_t *c; in sepol_port_sid() 2019 ocontext_t *c; in sepol_netif_sid() 2077 ocontext_t *c; in sepol_node_sid() 2241 ocontext_t *c; in sepol_genfs_sid() 2285 ocontext_t *c; in sepol_fs_use()
|
D | expand.c | 2120 ocontext_t *c, *n, *l; in ocontext_copy_xen() 2131 n = malloc(sizeof(ocontext_t)); in ocontext_copy_xen() 2136 memset(n, 0, sizeof(ocontext_t)); in ocontext_copy_xen() 2186 ocontext_t *c, *n, *l; in ocontext_copy_selinux() 2197 n = malloc(sizeof(ocontext_t)); in ocontext_copy_selinux() 2202 memset(n, 0, sizeof(ocontext_t)); in ocontext_copy_selinux() 2295 ocontext_t *c, *newc, *l; in genfs_copy() 2320 newc = malloc(sizeof(ocontext_t)); in genfs_copy() 2325 memset(newc, 0, sizeof(ocontext_t)); in genfs_copy()
|
D | policydb.c | 1443 static void ocontext_selinux_free(ocontext_t **ocontexts) in ocontext_selinux_free() 1445 ocontext_t *c, *ctmp; in ocontext_selinux_free() 1465 static void ocontext_xen_free(ocontext_t **ocontexts) in ocontext_xen_free() 1467 ocontext_t *c, *ctmp; in ocontext_xen_free() 1489 ocontext_t *c, *ctmp; in policydb_destroy() 1617 ocontext_t *head, *c; in policydb_load_isids() 2877 ocontext_t *l, *c; in ocontext_read_xen() 2888 c = calloc(1, sizeof(ocontext_t)); in ocontext_read_xen() 2988 ocontext_t *l, *c; in ocontext_read_selinux() 2999 c = calloc(1, sizeof(ocontext_t)); in ocontext_read_selinux() [all …]
|
D | policydb_validate.c | 1129 const ocontext_t *octx; in validate_ocontexts() 1172 const ocontext_t *octx; in validate_genfs()
|
D | write.c | 1356 ocontext_t *c; in ocontext_write_xen() 1464 ocontext_t *c; in ocontext_write_selinux() 1606 ocontext_t *c; in genfs_write()
|
/third_party/selinux/checkpolicy/ |
D | policy_define.c | 289 ocontext_t *newc = 0, *c, *head; in define_initial_sid() 302 newc = (ocontext_t *) malloc(sizeof(ocontext_t)); in define_initial_sid() 307 memset(newc, 0, sizeof(ocontext_t)); in define_initial_sid() 4570 ocontext_t *c, *head; in define_initial_sid_context() 4611 ocontext_t *newc, *c, *head; in define_fs_context() 4624 newc = (ocontext_t *) malloc(sizeof(ocontext_t)); in define_fs_context() 4629 memset(newc, 0, sizeof(ocontext_t)); in define_fs_context() 4672 ocontext_t *newc, *c, *l, *head; in define_pirq_context() 4687 newc = malloc(sizeof(ocontext_t)); in define_pirq_context() 4692 memset(newc, 0, sizeof(ocontext_t)); in define_pirq_context() [all …]
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 225 static ocontext_t *cil_add_ocontext(ocontext_t **head, ocontext_t **tail) in cil_add_ocontext() 227 ocontext_t *new = cil_malloc(sizeof(ocontext_t)); in cil_add_ocontext() 228 memset(new, 0, sizeof(ocontext_t)); in cil_add_ocontext() 3216 ocontext_t *tail = NULL; in cil_sidorder_to_policydb() 3231 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_ISID], &tail); in cil_sidorder_to_policydb() 3340 ocontext_t *tail = NULL; in cil_ibpkeycon_to_policydb() 3345 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBPKEY], &tail); in cil_ibpkeycon_to_policydb() 3374 ocontext_t *tail = NULL; in cil_portcon_to_policydb() 3378 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_PORT], &tail); in cil_portcon_to_policydb() 3418 ocontext_t *tail = NULL; in cil_netifcon_to_policydb() [all …]
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 384 } ocontext_t; typedef 584 ocontext_t *ocontexts[OCON_NUM];
|
/third_party/selinux/checkpolicy/test/ |
D | dismod.c | 439 ocontext_t *cur; in display_initial_sids()
|