| // 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/feedback", | |
| lifecycle: { stop_event: "notify" }, | |
| }, | |
| capabilities: [ | |
| { | |
| protocol: [ | |
| "fuchsia.feedback.ComponentDataRegister", | |
| "fuchsia.feedback.CrashReporter", | |
| "fuchsia.feedback.CrashReportingProductRegister", | |
| "fuchsia.feedback.DataProvider", | |
| "fuchsia.feedback.LastRebootInfoProvider", | |
| ], | |
| }, | |
| ], | |
| use: [ | |
| { | |
| protocol: [ | |
| "fuchsia.boot.ReadOnlyLog", | |
| "fuchsia.diagnostics.ArchiveAccessor.feedback", | |
| "fuchsia.diagnostics.ArchiveAccessor.logs", | |
| "fuchsia.hardware.power.statecontrol.ShutdownWatcherRegister", | |
| "fuchsia.hwinfo.Board", | |
| "fuchsia.hwinfo.Product", | |
| "fuchsia.kernel.RootJobForInspect", | |
| "fuchsia.metrics.MetricEventLoggerFactory", | |
| "fuchsia.net.http.Loader", | |
| "fuchsia.net.reachability.Monitor", | |
| "fuchsia.process.Launcher", | |
| "fuchsia.sysinfo.SysInfo", | |
| "fuchsia.ui.activity.Provider", | |
| ], | |
| }, | |
| { | |
| protocol: [ | |
| "fuchsia.diagnostics.persistence.PreviousBootDataProvider", | |
| "fuchsia.feedback.DeviceIdProvider", | |
| "fuchsia.intl.PropertyProvider", | |
| "fuchsia.power.battery.BatteryManager", | |
| "fuchsia.settings.Privacy", | |
| "fuchsia.tracing.provider.Registry", | |
| "fuchsia.update.channel.Provider", | |
| "fuchsia.update.channelcontrol.ChannelControl", | |
| ], | |
| availability: "optional", | |
| }, | |
| { | |
| directory: "boot", | |
| rights: [ "r*" ], | |
| path: "/boot", | |
| }, | |
| { | |
| directory: "config-data", | |
| rights: [ "r*" ], | |
| path: "/config/data", | |
| }, | |
| { | |
| directory: "feedback-config", | |
| from: "parent", | |
| rights: [ "r*" ], | |
| path: "/feedback-config", | |
| }, | |
| { | |
| directory: "build-info", | |
| rights: [ "r*" ], | |
| path: "/config/build-info", | |
| }, | |
| { | |
| storage: "tmp", | |
| path: "/tmp", | |
| }, | |
| { | |
| storage: "data", | |
| path: "/data", | |
| }, | |
| { | |
| storage: "cache", | |
| path: "/cache", | |
| }, | |
| ], | |
| expose: [ | |
| { | |
| protocol: [ | |
| "fuchsia.feedback.ComponentDataRegister", | |
| "fuchsia.feedback.CrashReporter", | |
| "fuchsia.feedback.CrashReportingProductRegister", | |
| "fuchsia.feedback.DataProvider", | |
| "fuchsia.feedback.LastRebootInfoProvider", | |
| ], | |
| from: "self", | |
| }, | |
| ], | |
| } |