diff options
author | Ali Ahmed <ama213000@gmail.com> | 2021-06-30 01:49:22 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2021-08-20 16:36:05 +0300 |
commit | 1c05dae3011628e5726eefc3ec4dbe7733fbb4d5 (patch) | |
tree | 8dab09eb727eb9a6e6a54bf1b783a7d50697aad5 /meson_options.txt | |
parent | 1759dc7a351b665cce9cf260e0c911f489a344ff (diff) | |
download | bmcweb-1c05dae3011628e5726eefc3ec4dbe7733fbb4d5.tar.xz |
Add TrustedModuleRequiredToBoot setter function
TrustedModuleRequiredToBoot is a Redfish ComputerSystem v1_14_0
property, determining if a working TPM is required in order to boot
the host. The TPM Required property is mapped to the "TPMEnable" D-Bus
property. The possible values for the Redfish property are "Required"
and "Disabled".
This commit will add the PATCH operations to the
TrustedModuleRequiredToBoot Redfish property.
(See https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/43930
for the GET operations for this property).
Testing:
1) Curl Testing: I manually tested retrieving the property:
*Default value of TrustedModuleRequiredToBoot is ??Required??
curl -k -H "X-Auth-Token: $token" -X PATCH -d \
'{"TrustedModuleRequiredToBoot":false}' \
https://${bmc}/redfish/v1/Systems/system
curl -k -H "X-Auth-Token: $token" \
https://${bmc}/redfish/v1/Systems/system
{
"@odata.id": "/redfish/v1/Systems/system",
"@odata.type": "#ComputerSystem.v1_14_0.ComputerSystem",
...
"Boot": {
"AutomaticRetryAttempts": 3,
??
"RemainingAutomaticRetryAttempts": 3,
"TrustedModuleRequiredToBoot": "Disabled"
},
...
On HW: D-Bus TPMEnable shows up correctly as 'false'
'# busctl get-property xyz.openbmc_project.Settings \
/xyz/openbmc_project/control/host0/TPMEnable \
xyz.openbmc_project.Control.TPM.Policy TPMEnable'
b false
2) Redfish Validator Testing: Tested on ComputerSystem v1_14_0 schema
Validator Test everything passed and 0 failures.
Signed-off-by: Ali Ahmed <ama213000@gmail.com>
Change-Id: Ie96a6afca179e45bef35813a3fa9c8a10cdf234e
Diffstat (limited to 'meson_options.txt')
0 files changed, 0 insertions, 0 deletions