| // Copyright 2021 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| { |
| include: [ |
| "inspect/client.shard.cml", |
| "syslog/client.shard.cml", |
| ], |
| program: { |
| runner: "elf", |
| binary: "bin/cobalt", |
| lifecycle: { stop_event: "notify" }, |
| }, |
| capabilities: [ |
| { |
| protocol: [ |
| "fuchsia.cobalt.AggregateAndUpload", |
| "fuchsia.cobalt.Controller", |
| "fuchsia.cobalt.SystemDataUpdater", |
| "fuchsia.metrics.MetricEventLoggerFactory", |
| ], |
| }, |
| ], |
| use: [ |
| { |
| protocol: [ |
| "fuchsia.buildinfo.Provider", |
| "fuchsia.net.http.Loader", |
| "fuchsia.scheduler.RoleManager", |
| "fuchsia.sysinfo.SysInfo", |
| ], |
| }, |
| { |
| protocol: [ |
| "fuchsia.settings.Privacy", |
| "fuchsia.tracing.provider.Registry", |
| "fuchsia.update.channel.Provider", |
| ], |
| availability: "optional", |
| }, |
| { |
| storage: "data", |
| path: "/data", |
| }, |
| { |
| directory: "root-ssl-certificates", |
| rights: [ "r*" ], |
| path: "/config/ssl", |
| }, |
| { |
| // In production, this directory capability comes from the system |
| // image. In tests, this capability is provided from the |
| // `cobalt_tests_config_data` directory from the test package. |
| directory: "config-data", |
| rights: [ "r*" ], |
| path: "/config/data", |
| }, |
| ], |
| expose: [ |
| { |
| protocol: [ |
| "fuchsia.cobalt.AggregateAndUpload", |
| "fuchsia.cobalt.Controller", |
| "fuchsia.cobalt.SystemDataUpdater", |
| "fuchsia.metrics.MetricEventLoggerFactory", |
| ], |
| from: "self", |
| }, |
| ], |
| } |