Lines Matching refs:NETIFCONS
67 #define NETIFCONS 15 macro
121 fprintf(file_arr[NETIFCONS], "portcon "); in cil_portcon_to_policy()
123 fprintf(file_arr[NETIFCONS], "udp "); in cil_portcon_to_policy()
125 fprintf(file_arr[NETIFCONS], "tcp "); in cil_portcon_to_policy()
127 fprintf(file_arr[NETIFCONS], "%d ", portcon->port_low); in cil_portcon_to_policy()
128 fprintf(file_arr[NETIFCONS], "%d ", portcon->port_high); in cil_portcon_to_policy()
129 cil_context_to_policy(file_arr, NETIFCONS, portcon->context); in cil_portcon_to_policy()
130 fprintf(file_arr[NETIFCONS], ";\n"); in cil_portcon_to_policy()
142 fprintf(file_arr[NETIFCONS], "genfscon %s ", genfscon->fs_str); in cil_genfscon_to_policy()
143 fprintf(file_arr[NETIFCONS], "%s ", genfscon->path_str); in cil_genfscon_to_policy()
144 cil_context_to_policy(file_arr, NETIFCONS, genfscon->context); in cil_genfscon_to_policy()
145 fprintf(file_arr[NETIFCONS], ";\n"); in cil_genfscon_to_policy()
157 fprintf(file_arr[NETIFCONS], "netifcon %s ", netifcon->interface_str); in cil_netifcon_to_policy()
158 cil_context_to_policy(file_arr, NETIFCONS, netifcon->if_context); in cil_netifcon_to_policy()
159 fprintf(file_arr[NETIFCONS], " "); in cil_netifcon_to_policy()
160 cil_context_to_policy(file_arr, NETIFCONS, netifcon->packet_context); in cil_netifcon_to_policy()
161 fprintf(file_arr[NETIFCONS], ";\n"); in cil_netifcon_to_policy()
190 fprintf(file_arr[NETIFCONS], "nodecon %s ", buf); in cil_nodecon_to_policy()
207 fprintf(file_arr[NETIFCONS], "%s ", buf); in cil_nodecon_to_policy()
210 cil_context_to_policy(file_arr, NETIFCONS, nodecon->context); in cil_nodecon_to_policy()
211 fprintf(file_arr[NETIFCONS], ";\n"); in cil_nodecon_to_policy()
227 fprintf(file_arr[NETIFCONS], "pirqcon %d ", pirqcon->pirq); in cil_pirqcon_to_policy()
228 cil_context_to_policy(file_arr, NETIFCONS, pirqcon->context); in cil_pirqcon_to_policy()
229 fprintf(file_arr[NETIFCONS], ";\n"); in cil_pirqcon_to_policy()
240 …fprintf(file_arr[NETIFCONS], "iomemcon %"PRId64"-%"PRId64" ", iomemcon->iomem_low, iomemcon->iomem… in cil_iomemcon_to_policy()
241 cil_context_to_policy(file_arr, NETIFCONS, iomemcon->context); in cil_iomemcon_to_policy()
242 fprintf(file_arr[NETIFCONS], ";\n"); in cil_iomemcon_to_policy()
254 fprintf(file_arr[NETIFCONS], "ioportcon %d-%d ", ioportcon->ioport_low, ioportcon->ioport_high); in cil_ioportcon_to_policy()
255 cil_context_to_policy(file_arr, NETIFCONS, ioportcon->context); in cil_ioportcon_to_policy()
256 fprintf(file_arr[NETIFCONS], ";\n"); in cil_ioportcon_to_policy()
268 fprintf(file_arr[NETIFCONS], "pcidevicecon %d ", pcidevicecon->dev); in cil_pcidevicecon_to_policy()
269 cil_context_to_policy(file_arr, NETIFCONS, pcidevicecon->context); in cil_pcidevicecon_to_policy()
270 fprintf(file_arr[NETIFCONS], ";\n"); in cil_pcidevicecon_to_policy()
283 fprintf(file_arr[NETIFCONS], "fs_use_xattr "); in cil_fsuse_to_policy()
285 fprintf(file_arr[NETIFCONS], "fs_use_task "); in cil_fsuse_to_policy()
287 fprintf(file_arr[NETIFCONS], "fs_use_trans "); in cil_fsuse_to_policy()
291 fprintf(file_arr[NETIFCONS], "%s ", fsuse->fs_str); in cil_fsuse_to_policy()
292 cil_context_to_policy(file_arr, NETIFCONS, fsuse->context); in cil_fsuse_to_policy()
293 fprintf(file_arr[NETIFCONS], ";\n"); in cil_fsuse_to_policy()
1263 file_arr[NETIFCONS] = fdopen(mkstemp(temp), "w+"); in cil_gen_policy()
1264 file_path_arr[NETIFCONS] = cil_strpool_add(temp); in cil_gen_policy()