mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 06:27:58 +00:00
Allow OnlyTrusted=false in the non-polkit case
This commit is contained in:
parent
9c7939dae3
commit
fcb5257e16
@ -46,6 +46,5 @@ UriSchemes=
|
||||
# Ignore power levels of devices when running updates
|
||||
IgnorePower=false
|
||||
|
||||
# For systems using polkit for authorization, only support installing firmware
|
||||
# signed with a trusted key
|
||||
# Only support installing firmware signed with a trusted key
|
||||
OnlyTrusted=true
|
||||
|
@ -1709,7 +1709,6 @@ fu_engine_check_requirement(FuEngine *self,
|
||||
gboolean
|
||||
fu_engine_check_trust(FuEngine *self, FuInstallTask *task, GError **error)
|
||||
{
|
||||
#ifdef HAVE_POLKIT
|
||||
if (fu_config_get_only_trusted(self->config) &&
|
||||
(fu_install_task_get_trust_flags(task) & FWUPD_TRUST_FLAG_PAYLOAD) == 0) {
|
||||
g_autofree gchar *sysconfdir = fu_common_get_path(FU_PATH_KIND_SYSCONFDIR_PKG);
|
||||
@ -1722,15 +1721,6 @@ fu_engine_check_trust(FuEngine *self, FuInstallTask *task, GError **error)
|
||||
fn);
|
||||
return FALSE;
|
||||
}
|
||||
#else
|
||||
if ((fu_install_task_get_trust_flags(task) & FWUPD_TRUST_FLAG_PAYLOAD) == 0) {
|
||||
g_set_error_literal(error,
|
||||
FWUPD_ERROR,
|
||||
FWUPD_ERROR_INVALID_FILE,
|
||||
"firmware signature missing or not trusted");
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user