Searched defs:netifcon (Results 1 - 8 of 8) sorted by relevance

/external/selinux/libsepol/cil/src/
H A Dcil_reset_ast.c287 static void cil_reset_netifcon(struct cil_netifcon *netifcon) argument
289 if (netifcon->if_context_str == NULL) {
290 cil_reset_context(netifcon->if_context);
293 if (netifcon->packet_context_str == NULL) {
294 cil_reset_context(netifcon->packet_context);
H A Dcil_policy.c156 struct cil_netifcon *netifcon = (struct cil_netifcon*)sort->array[i]; local
157 fprintf(file_arr[NETIFCONS], "netifcon %s ", netifcon->interface_str);
158 cil_context_to_policy(file_arr, NETIFCONS, netifcon->if_context);
160 cil_context_to_policy(file_arr, NETIFCONS, netifcon->packet_context);
1324 rc = cil_netifcon_to_policy(file_arr, db->netifcon);
H A Dcil_tree.c1362 struct cil_netifcon *netifcon = node->data; local
1363 cil_log(CIL_INFO, "NETIFCON %s", netifcon->interface_str);
1365 if (netifcon->if_context != NULL) {
1366 cil_tree_print_context(netifcon->if_context);
1367 } else if (netifcon->if_context_str != NULL) {
1368 cil_log(CIL_INFO, " %s", netifcon->if_context_str);
1371 if (netifcon->packet_context != NULL) {
1372 cil_tree_print_context(netifcon->packet_context);
1373 } else if (netifcon->packet_context_str != NULL) {
1374 cil_log(CIL_INFO, " %s", netifcon
[all...]
H A Dcil.c190 CIL_KEY_NETIFCON = cil_strpool_add("netifcon");
242 cil_sort_init(&(*db)->netifcon);
288 cil_sort_destroy(&(*db)->netifcon);
1740 void cil_netifcon_init(struct cil_netifcon **netifcon) argument
1742 *netifcon = cil_malloc(sizeof(**netifcon));
1744 (*netifcon)->interface_str = NULL;
1745 (*netifcon)->if_context_str = NULL;
1746 (*netifcon)->if_context = NULL;
1747 (*netifcon)
[all...]
H A Dcil_post.c365 db->netifcon->count++;
448 struct cil_sort *sort = db->netifcon;
1290 struct cil_netifcon *netifcon = node->data; local
1291 rc = __evaluate_levelrange_expression(netifcon->if_context->range, db);
1295 rc = __evaluate_levelrange_expression(netifcon->packet_context->range, db);
1616 qsort(db->netifcon->array, db->netifcon->count, sizeof(db->netifcon->array), cil_post_netifcon_compare);
H A Dcil_resolve_ast.c1835 struct cil_netifcon *netifcon = current->data; local
1841 if (netifcon->if_context_str != NULL) {
1842 rc = cil_resolve_name(current, netifcon->if_context_str, CIL_SYM_CONTEXTS, extra_args, &ifcon_datum);
1846 netifcon->if_context = (struct cil_context*)ifcon_datum;
1848 rc = cil_resolve_context(current, netifcon->if_context, extra_args);
1854 if (netifcon->packet_context_str != NULL) {
1855 rc = cil_resolve_name(current, netifcon->packet_context_str, CIL_SYM_CONTEXTS, extra_args, &packcon_datum);
1859 netifcon->packet_context = (struct cil_context*)packcon_datum;
1861 rc = cil_resolve_context(current, netifcon->packet_context, extra_args);
H A Dcil_build_ast.c4166 struct cil_netifcon *netifcon = NULL; local
4177 cil_netifcon_init(&netifcon);
4179 netifcon->interface_str = parse_current->next->data;
4182 netifcon->if_context_str = parse_current->next->next->data;
4184 cil_context_init(&netifcon->if_context);
4186 rc = cil_fill_context(parse_current->next->next->cl_head, netifcon->if_context);
4193 netifcon->packet_context_str = parse_current->next->next->next->data;
4195 cil_context_init(&netifcon->packet_context);
4197 rc = cil_fill_context(parse_current->next->next->next->cl_head, netifcon->packet_context);
4203 ast_node->data = netifcon;
4215 cil_destroy_netifcon(struct cil_netifcon *netifcon) argument
[all...]
H A Dcil_internal.h268 struct cil_sort *netifcon; member in struct:cil_db
896 void cil_netifcon_init(struct cil_netifcon **netifcon);

Completed in 6087 milliseconds