[benchmarks] Add fuchsia.boot.RootJob to component manifests.
The corresponding shell scripts for these component manifests all use
the 'killall' shell command. This command uses the root job, gained from
/dev/misc/sysinfo. Soon I'll change the 'killall' command to use
fuchsia.boot.RootJob and to prevent CI from rejecting the change, I need
to add the service to these component manifests ahead of time.
Bug: 25045
Change-Id: I6cee8c41b6cbe0155fcbaa3701a1b48955527622
diff --git a/BUILD.gn b/BUILD.gn
index db6c635..702d4da 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -37,3 +37,21 @@
"//topaz/tests/benchmarks/input_latency:topaz_input_latency_benchmarks",
]
}
+
+group("rootjob_svc_allowlist") {
+ # ________ _________ ________ ________
+ # |\ ____\|\___ ___\\ __ \|\ __ \
+ # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
+ # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
+ # \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
+ # ____\_\ \ \ \__\ \ \_______\ \__\
+ # |\_________\ \|__| \|_______|\|__|
+ # \|_________|
+ # This is an allowlist of packages that have components manifests that include
+ # the "fuchsia.boot.RootJob" service. This is a highly privileged service that vends
+ # out a very powerful capability. Do not add yourself to this unless this is the only
+ # way to accomplish your goal and you have talked to the security team about this.
+ visibility = [
+ "//topaz/tests/benchmarks/input_latency:topaz_input_latency_benchmarks",
+ ]
+}
diff --git a/tests/benchmarks/input_latency/BUILD.gn b/tests/benchmarks/input_latency/BUILD.gn
index 857be11..570cf0b 100644
--- a/tests/benchmarks/input_latency/BUILD.gn
+++ b/tests/benchmarks/input_latency/BUILD.gn
@@ -6,6 +6,7 @@
package("topaz_input_latency_benchmarks") {
deprecated_shell = "//topaz"
+ rootjob_svc = "//topaz"
testonly = true
diff --git a/tests/benchmarks/input_latency/run_button_flutter_benchmark.cmx b/tests/benchmarks/input_latency/run_button_flutter_benchmark.cmx
index 32685bd..e92164b 100644
--- a/tests/benchmarks/input_latency/run_button_flutter_benchmark.cmx
+++ b/tests/benchmarks/input_latency/run_button_flutter_benchmark.cmx
@@ -8,6 +8,7 @@
"deprecated-ambient-replace-as-executable"
],
"services": [
+ "fuchsia.boot.RootJob",
"fuchsia.process.Launcher",
"fuchsia.process.Resolver",
"fuchsia.sys.Environment",