diff options
| author | 2026-09-23 16:04:54 +0300 | |
|---|---|---|
| committer | 2026-10-14 11:56:36 +0300 | |
| commit | d96966a8aa10028a97ff9db6aa078eec8dce5da0 (patch) | |
| tree | 200f0156b4b78a7ec5282b470472d1a6cdca4e2f /scripts/Makefile.thinlto | |
| parent | wifi: iwlwifi: uefi: add UEFI GUID Lock Indicator (GLUI) definitions (diff) | |
wifi: iwlwifi: uefi: add a way to probe connectivity UEFI variables
The connectivity UEFI variables are only trusted when the platform
attests they are locked. When the lock status is unknown, the trust of
each variable has to be discovered on its own by checking whether it is
write protected. Probing depends on trying to rewrite UEFI variables and
it is only attempted on non-x86 platforms. If the write is rejected the
variable is considered locked and therefore trusted, otherwise it is
treated as not trusted.
Separate reading such a variable into two steps:
iwl_uefi_get_variable_guid() only fetches and validates the variable,
while iwl_uefi_get_verified_variable_guid() layers the trust decision on
top of it. The latter now takes an iwl_fw_runtime so it can consult the
lock status. Rename its WiFi-GUID wrapper from
iwl_uefi_get_verified_variable() to iwl_uefi_get_verified_wifi_var().
With the trust check now performed by every iwl_uefi_get_*() reached
through the GET_BIOS_TABLE() macro, the per-table lock-status gate in
that macro is redundant, so drop it here.
This move, and the new unknown-status handling, affect only the tables
reached through GET_BIOS_TABLE(), i.e. those that have both a UEFI and
an ACPI source.
Assisted-by: GitHub-Copilot:claude-opus-4-8
Signed-off-by: Shahar Tzarfati <shahar.tzarfati@intel.com>
Link: https://patch.msgid.link/20260923160318.6caa9ca17ffe.I877c0d6ab5126edb3e4f1f187ca1e20e563b2ec4@changeid
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
