/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 | 1857 ocontext_t *c; in sepol_fs_sid() 1897 ocontext_t *c; in sepol_ibpkey_sid() 1934 ocontext_t *c; in sepol_ibendport_sid() 1972 ocontext_t *c; in sepol_port_sid() 2012 ocontext_t *c; in sepol_netif_sid() 2070 ocontext_t *c; in sepol_node_sid() 2240 ocontext_t *c; in sepol_genfs_sid() 2284 ocontext_t *c; in sepol_fs_use()
|
D | policydb.c | 1430 static void ocontext_selinux_free(ocontext_t **ocontexts) in ocontext_selinux_free() 1432 ocontext_t *c, *ctmp; in ocontext_selinux_free() 1452 static void ocontext_xen_free(ocontext_t **ocontexts) in ocontext_xen_free() 1454 ocontext_t *c, *ctmp; in ocontext_xen_free() 1476 ocontext_t *c, *ctmp; in policydb_destroy() 1604 ocontext_t *head, *c; in policydb_load_isids() 2857 ocontext_t *l, *c; in ocontext_read_xen() 2868 c = calloc(1, sizeof(ocontext_t)); in ocontext_read_xen() 2966 ocontext_t *l, *c; in ocontext_read_selinux() 2977 c = calloc(1, sizeof(ocontext_t)); in ocontext_read_selinux() [all …]
|
D | expand.c | 2095 ocontext_t *c, *n, *l; in ocontext_copy_xen() 2106 n = malloc(sizeof(ocontext_t)); in ocontext_copy_xen() 2111 memset(n, 0, sizeof(ocontext_t)); in ocontext_copy_xen() 2161 ocontext_t *c, *n, *l; in ocontext_copy_selinux() 2172 n = malloc(sizeof(ocontext_t)); in ocontext_copy_selinux() 2177 memset(n, 0, sizeof(ocontext_t)); in ocontext_copy_selinux() 2270 ocontext_t *c, *newc, *l; in genfs_copy() 2295 newc = malloc(sizeof(ocontext_t)); in genfs_copy() 2300 memset(newc, 0, sizeof(ocontext_t)); in genfs_copy()
|
D | write.c | 1354 ocontext_t *c; in ocontext_write_xen() 1462 ocontext_t *c; in ocontext_write_selinux() 1604 ocontext_t *c; in genfs_write()
|
/third_party/selinux/checkpolicy/ |
D | policy_define.c | 290 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() 4514 ocontext_t *c, *head; in define_initial_sid_context() 4555 ocontext_t *newc, *c, *head; in define_fs_context() 4568 newc = (ocontext_t *) malloc(sizeof(ocontext_t)); in define_fs_context() 4573 memset(newc, 0, sizeof(ocontext_t)); in define_fs_context() 4616 ocontext_t *newc, *c, *l, *head; in define_pirq_context() 4631 newc = malloc(sizeof(ocontext_t)); in define_pirq_context() 4636 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() 3128 ocontext_t *tail = NULL; in cil_sidorder_to_policydb() 3143 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_ISID], &tail); in cil_sidorder_to_policydb() 3243 ocontext_t *tail = NULL; in cil_ibpkeycon_to_policydb() 3248 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_IBPKEY], &tail); in cil_ibpkeycon_to_policydb() 3277 ocontext_t *tail = NULL; in cil_portcon_to_policydb() 3281 ocontext_t *new_ocon = cil_add_ocontext(&pdb->ocontexts[OCON_PORT], &tail); in cil_portcon_to_policydb() 3321 ocontext_t *tail = NULL; in cil_netifcon_to_policydb() [all …]
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 383 } ocontext_t; typedef 583 ocontext_t *ocontexts[OCON_NUM];
|
/third_party/selinux/checkpolicy/test/ |
D | dismod.c | 439 ocontext_t *cur; in display_initial_sids()
|