mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 15:53:56 +00:00
trivial: reword the security cases for a few plugins
On a system that is not at all locked down running an old kernel several of the items are a bit confusing. ``` Runtime Suffix -! ✔ fwupd plugins: OK ✔ Linux Kernel: OK ✘ Linux Kernel: Could not open file ✘ Linux Swap: Not encrypted ```
This commit is contained in:
parent
c1eda7d516
commit
66bab9d8f4
@ -29,7 +29,7 @@ fu_plugin_add_security_attrs (FuPlugin *plugin, FuSecurityAttrs *attrs)
|
||||
/* create attr */
|
||||
attr = fwupd_security_attr_new ("org.uefi.ACPI.Facp");
|
||||
fwupd_security_attr_set_level (attr, FWUPD_SECURITY_ATTR_LEVEL_THEORETICAL);
|
||||
fwupd_security_attr_set_name (attr, "Suspend2Idle");
|
||||
fwupd_security_attr_set_name (attr, "Suspend To Idle");
|
||||
fu_security_attrs_append (attrs, attr);
|
||||
|
||||
/* load FACP table */
|
||||
|
@ -71,7 +71,7 @@ fu_plugin_add_security_attrs (FuPlugin *plugin, FuSecurityAttrs *attrs)
|
||||
|
||||
/* create attr */
|
||||
attr = fwupd_security_attr_new ("org.kernel.CheckLockdown");
|
||||
fwupd_security_attr_set_name (attr, "Linux Kernel");
|
||||
fwupd_security_attr_set_name (attr, "Linux Kernel Lockdown");
|
||||
fwupd_security_attr_add_flag (attr, FWUPD_SECURITY_ATTR_FLAG_RUNTIME_ISSUE);
|
||||
fu_security_attrs_append (attrs, attr);
|
||||
|
||||
@ -79,7 +79,7 @@ fu_plugin_add_security_attrs (FuPlugin *plugin, FuSecurityAttrs *attrs)
|
||||
if (!g_file_load_contents (data->file, NULL, &buf, &bufsz, NULL, &error_local)) {
|
||||
g_autofree gchar *fn = g_file_get_path (data->file);
|
||||
g_warning ("could not open %s: %s", fn, error_local->message);
|
||||
fwupd_security_attr_set_result (attr, "Could not open file");
|
||||
fwupd_security_attr_set_result (attr, "Not supported");
|
||||
return;
|
||||
}
|
||||
if (g_strstr_len (buf, bufsz, "[integrity]") == NULL &&
|
||||
|
@ -71,7 +71,7 @@ fu_plugin_add_security_attrs (FuPlugin *plugin, FuSecurityAttrs *attrs)
|
||||
|
||||
/* create attr */
|
||||
attr = fwupd_security_attr_new ("org.kernel.CheckTainted");
|
||||
fwupd_security_attr_set_name (attr, "Linux Kernel");
|
||||
fwupd_security_attr_set_name (attr, "Linux Kernel Taint");
|
||||
fwupd_security_attr_add_flag (attr, FWUPD_SECURITY_ATTR_FLAG_RUNTIME_ISSUE);
|
||||
fu_security_attrs_append (attrs, attr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user