firmware: Add missing attributes to EFI variable attribute print out from sysfs
authorKhalid Aziz <khalid.aziz@hp.com>
Mon, 10 Sep 2012 18:52:42 +0000 (12:52 -0600)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 17 Oct 2012 02:48:20 +0000 (03:48 +0100)
commit77ad5624ead898018901874d19671164d5ee741c
tree6d20a8c12312573f6b5fc7d67ba2af8344f6cb7f
parent04ed02cc7d431eb295bf9a4cb33c13319f34c48a
firmware: Add missing attributes to EFI variable attribute print out from sysfs

commit 7083909023bbe29b3176e92d2d089def1aa7aa1e upstream.

Some of the EFI variable attributes are missing from print out from
/sys/firmware/efi/vars/*/attributes. This patch adds those in. It also
updates code to use pre-defined constants for masking current value
of attributes.

Signed-off-by: Khalid Aziz <khalid.aziz@hp.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/firmware/efivars.c