1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-01 19:02:31 +01:00

framework: Add feature to mark workloads unsafe for confidential devices

Some workloads, such as Geekbench, may phone home and report data about the
device they are running on. This poses a risk for users that are testing on
unreleased or otherwise confidential devices - perhaps they use a standard
agenda to run a large battery of tests, in which case they may forget to disable
these dangerous workloads.

This provides a mechanism to prevent running those workloads from running by
setting allow_phone_home=False in the user configuration.
This commit is contained in:
Brendan Jackman
2017-10-04 13:25:06 +01:00
parent 188e5d752f
commit 06b451d31b
3 changed files with 31 additions and 0 deletions

View File

@@ -783,6 +783,19 @@ class RunConfiguration(Configuration):
export the output to an exeternal location.
''',
),
ConfigurationPoint(
'allow_phone_home',
kind=bool, default=True,
description='''
Setting this to ``False`` prevents running any workloads that are marked
with 'phones_home', meaning they are at risk of exposing information
about the device to the outside world. For example, some benchmark
applications upload device data to a database owned by the
maintainers.
This can be used to minimise the risk of accidentally running such
workloads when testing confidential devices.
'''),
]
configuration = {cp.name: cp for cp in config_points + meta_data}