Lines Matching defs:context

356 static void write_context(FILE *out, struct cil_context *context, int print_name)
358 if (print_name && context->datum.name) {
359 fprintf(out, "%s", datum_to_str(DATUM(context)));
362 fprintf(out, "%s ", datum_or_str(DATUM(context->user), context->user_str));
363 fprintf(out, "%s ", datum_or_str(DATUM(context->role), context->role_str));
364 fprintf(out, "%s ", datum_or_str(DATUM(context->type), context->type_str));
365 if (context->range)
366 write_range(out, context->range, CIL_TRUE);
368 fprintf(out, "%s", context->range_str);
829 if (sidcon->context)
830 write_context(out, sidcon->context, CIL_TRUE);
1225 struct cil_context *context = node->data;
1226 fprintf(out, "(context %s ", datum_to_str(DATUM(context)));
1227 write_context(out, context, CIL_FALSE);
1263 if (filecon->context)
1264 write_context(out, filecon->context, CIL_TRUE);
1276 if (ibpkeycon->context)
1277 write_context(out, ibpkeycon->context, CIL_TRUE);
1300 if (portcon->context)
1301 write_context(out, portcon->context, CIL_TRUE);
1320 if (nodecon->context)
1321 write_context(out, nodecon->context, CIL_TRUE);
1358 if (genfscon->context)
1359 write_context(out, genfscon->context, CIL_TRUE);
1383 if (ibendportcon->context)
1384 write_context(out, ibendportcon->context, CIL_TRUE);
1393 if (pirqcon->context)
1394 write_context(out, pirqcon->context, CIL_TRUE);
1403 if (iomemcon->context)
1404 write_context(out, iomemcon->context, CIL_TRUE);
1418 if (ioportcon->context)
1419 write_context(out, ioportcon->context, CIL_TRUE);
1428 if (pcidevicecon->context)
1429 write_context(out, pcidevicecon->context, CIL_TRUE);
1438 if (devicetreecon->context)
1439 write_context(out, devicetreecon->context, CIL_TRUE);
1457 if (fsuse->context)
1458 write_context(out, fsuse->context, CIL_TRUE);