[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120713153827.GA8007@hp.com>
Date: Fri, 13 Jul 2012 09:38:27 -0600
From: Khalid Aziz <khalid.aziz@...com>
To: linux-kernel@...r.kernel.org
Cc: tony.luck@...el.com, mikew@...gle.com, mjg@...hat.com,
keescook@...omium.org, gong.chen@...ux.intel.com
Subject: [PATCH] Add missing attributes to EFI variable attribute print out
from sysfs
Some of the EFI variable attributes are missing from print out from
/sys/firmware/efi/vars/*/attributes. This patch adds those in.
Signed-off-by: Khalid Aziz <khalid.aziz@...com>
Cc: stable@...r.kernel.org
---
drivers/firmware/efivars.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c
index 47408e8..1e1ac75 100644
--- a/drivers/firmware/efivars.c
+++ b/drivers/firmware/efivars.c
@@ -441,6 +441,16 @@ efivar_attr_read(struct efivar_entry *entry, char *buf)
str += sprintf(str, "EFI_VARIABLE_BOOTSERVICE_ACCESS\n");
if (var->Attributes & 0x4)
str += sprintf(str, "EFI_VARIABLE_RUNTIME_ACCESS\n");
+ if (var->Attributes & 0x8)
+ str += sprintf(str, "EFI_VARIABLE_HARDWARE_ERROR_RECORD\n");
+ if (var->Attributes & 0x10)
+ str += sprintf(str,
+ "EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS\n");
+ if (var->Attributes & 0x20)
+ str += sprintf(str,
+ "EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS\n");
+ if (var->Attributes & 0x40)
+ str += sprintf(str, "EFI_VARIABLE_APPEND_WRITE\n");
return str - buf;
}
--
1.7.9.5
==================
Khalid Aziz
khalid.aziz@...com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists