]> Git Repo - linux.git/commit - include/linux/efi.h
efi: Make efivarfs entries immutable by default
authorPeter Jones <[email protected]>
Mon, 8 Feb 2016 19:48:15 +0000 (14:48 -0500)
committerMatt Fleming <[email protected]>
Wed, 10 Feb 2016 16:25:52 +0000 (16:25 +0000)
commited8b0de5a33d2a2557dce7f9429dca8cb5bc5879
tree1dcd2e49cc432ae312677ec47453ec3abc18f1d2
parent8282f5d9c17fe15a9e658c06e3f343efae1a2a2f
efi: Make efivarfs entries immutable by default

"rm -rf" is bricking some peoples' laptops because of variables being
used to store non-reinitializable firmware driver data that's required
to POST the hardware.

These are 100% bugs, and they need to be fixed, but in the mean time it
shouldn't be easy to *accidentally* brick machines.

We have to have delete working, and picking which variables do and don't
work for deletion is quite intractable, so instead make everything
immutable by default (except for a whitelist), and make tools that
aren't quite so broad-spectrum unset the immutable flag.

Signed-off-by: Peter Jones <[email protected]>
Tested-by: Lee, Chun-Yi <[email protected]>
Acked-by: Matthew Garrett <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
Documentation/filesystems/efivarfs.txt
drivers/firmware/efi/vars.c
fs/efivarfs/file.c
fs/efivarfs/inode.c
fs/efivarfs/internal.h
fs/efivarfs/super.c
include/linux/efi.h
tools/testing/selftests/efivarfs/efivarfs.sh
tools/testing/selftests/efivarfs/open-unlink.c
This page took 0.055567 seconds and 4 git commands to generate.