| // Copyright 2022 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. | |
| { | |
| children: [ | |
| { | |
| name: "exceptions", | |
| url: "fuchsia-pkg://fuchsia.com/forensics#meta/exceptions.cm", | |
| }, | |
| { | |
| name: "feedback", | |
| url: "fuchsia-pkg://fuchsia.com/forensics#meta/feedback.cm", | |
| startup: "eager", | |
| }, | |
| { | |
| name: "feedback-config", | |
| url: "fuchsia-pkg://fuchsia.com/feedback-config#meta/feedback-config.cm", | |
| }, | |
| ], | |
| offer: [ | |
| { | |
| protocol: [ | |
| "fuchsia.driver.crash.CrashIntrospect", | |
| "fuchsia.process.Launcher", | |
| "fuchsia.sys2.CrashIntrospect", | |
| ], | |
| from: "parent", | |
| to: "#exceptions", | |
| }, | |
| { | |
| // NOTE: fuchsia.diagnostics.ArchiveAccessor.logs exposes unredacted | |
| // system logs prior to redaction by Feedback. Routing this protocol | |
| // to any component other than #feedback is restricted by security | |
| // policy in //src/security/policy/component_manager_policy_base.json5 | |
| // and requires a Fuchsia Privacy review. | |
| protocol: [ | |
| "fuchsia.boot.ReadOnlyLog", | |
| "fuchsia.diagnostics.ArchiveAccessor.logs", | |
| "fuchsia.hardware.power.statecontrol.ShutdownWatcherRegister", | |
| "fuchsia.kernel.RootJobForInspect", | |
| "fuchsia.process.Launcher", | |
| "fuchsia.sysinfo.SysInfo", | |
| ], | |
| from: "parent", | |
| to: "#feedback", | |
| }, | |
| { | |
| protocol: "fuchsia.diagnostics.ArchiveAccessor.feedback", | |
| from: "parent/diagnostics-accessors", | |
| to: "#feedback", | |
| }, | |
| { | |
| protocol: "fuchsia.diagnostics.persistence.PreviousBootDataProvider", | |
| from: "#diagnostics", | |
| to: "#feedback", | |
| // #diagnostics is only included in common_standard, so in configurations where | |
| // it is not present (such as minimal or scrutiny test assemblies), the source | |
| // and capability availability must be optional. | |
| source_availability: "unknown", | |
| availability: "optional", | |
| }, | |
| { | |
| protocol: [ | |
| "fuchsia.ui.activity.control.Control", | |
| "fuchsia.ui.activity.Provider", | |
| ], | |
| from: "#activity", | |
| to: "#feedback", | |
| }, | |
| { | |
| protocol: "fuchsia.metrics.MetricEventLoggerFactory", | |
| from: "#cobalt", | |
| to: "#feedback", | |
| }, | |
| { | |
| protocol: [ | |
| "fuchsia.hwinfo.Board", | |
| "fuchsia.hwinfo.Product", | |
| ], | |
| from: "#hwinfo", | |
| to: "#feedback", | |
| }, | |
| { | |
| protocol: "fuchsia.intl.PropertyProvider", | |
| from: "#intl", | |
| to: "#feedback", | |
| // TODO(https://fxbug.dev/42058566): feedback is available in configurations | |
| // where intl is not present. Fix this irrationality somehow. | |
| source_availability: "unknown", | |
| }, | |
| { | |
| protocol: "fuchsia.net.interfaces.State", | |
| from: "#network", | |
| to: "#exceptions", | |
| }, | |
| { | |
| protocol: "fuchsia.net.http.GoogleLoader", | |
| from: "#network", | |
| as: "fuchsia.net.http.Loader", | |
| to: "#feedback", | |
| }, | |
| { | |
| protocol: "fuchsia.net.reachability.Monitor", | |
| from: "#network", | |
| to: "#feedback", | |
| }, | |
| { | |
| protocol: "fuchsia.settings.Privacy", | |
| from: "#setui_service", | |
| to: "#feedback", | |
| // TODO(https://fxbug.dev/42058576): break the cycle | |
| dependency: "weak", | |
| // TODO(https://fxbug.dev/42058576): feedback is available in configurations | |
| // where setui_service is not present. Fix this irrationality somehow. | |
| source_availability: "unknown", | |
| }, | |
| { | |
| protocol: [ | |
| "fuchsia.update.channel.Provider", | |
| "fuchsia.update.channelcontrol.ChannelControl", | |
| ], | |
| from: "#system-update", | |
| to: "#feedback", | |
| dependency: "weak", | |
| source_availability: "unknown", | |
| availability: "optional", | |
| }, | |
| { | |
| protocol: "fuchsia.power.battery.BatteryManager", | |
| from: "#battery_manager", | |
| to: "#feedback", | |
| dependency: "weak", | |
| source_availability: "unknown", | |
| availability: "optional", | |
| }, | |
| { | |
| protocol: "fuchsia.feedback.CrashReporter", | |
| from: "#feedback", | |
| to: "#exceptions", | |
| }, | |
| { | |
| directory: "config-data", | |
| from: "parent", | |
| to: [ | |
| "#exceptions", | |
| "#feedback", | |
| ], | |
| subdir: "forensics", | |
| }, | |
| { | |
| directory: "feedback-config", | |
| from: "#feedback-config", | |
| to: [ "#feedback" ], | |
| rights: [ "r*" ], | |
| }, | |
| { | |
| directory: "build-info", | |
| from: "parent", | |
| to: "#feedback", | |
| }, | |
| { | |
| directory: "boot", | |
| from: "parent", | |
| to: "#feedback", | |
| }, | |
| { | |
| storage: "tmp", | |
| from: "self", | |
| to: "#exceptions", | |
| }, | |
| { | |
| storage: [ | |
| "cache", | |
| "data", | |
| "tmp", | |
| ], | |
| from: "self", | |
| to: "#feedback", | |
| }, | |
| { | |
| protocol: [ | |
| "fuchsia.feedback.ComponentDataRegister", | |
| "fuchsia.feedback.CrashReporter", | |
| "fuchsia.feedback.CrashReportingProductRegister", | |
| "fuchsia.feedback.DataProvider", | |
| "fuchsia.feedback.LastRebootInfoProvider", | |
| ], | |
| from: "#feedback", | |
| to: "self/toolbox", | |
| target_availability: "unknown", | |
| }, | |
| { | |
| protocol: [ | |
| "fuchsia.exception.Handler", | |
| "fuchsia.exception.ProcessLimbo", | |
| ], | |
| from: "#exceptions", | |
| to: "self/toolbox", | |
| target_availability: "unknown", | |
| }, | |
| ], | |
| expose: [ | |
| { | |
| protocol: [ | |
| "fuchsia.exception.Handler", | |
| "only_meant_for_outliving_certain_components", | |
| ], | |
| from: "#exceptions", | |
| }, | |
| { | |
| protocol: [ | |
| "fuchsia.feedback.ComponentDataRegister", | |
| "fuchsia.feedback.CrashReporter", | |
| "fuchsia.feedback.DataProvider", | |
| ], | |
| from: "#feedback", | |
| }, | |
| ], | |
| } |