linux/tools/testing/selftests/efivarfs
Peter Jones ed8b0de5a3 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 <pjones@redhat.com>
Tested-by: Lee, Chun-Yi <jlee@suse.com>
Acked-by: Matthew Garrett <mjg59@coreos.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
2016-02-10 16:25:52 +00:00
..
.gitignore selftests: add .gitignore for efivarfs 2015-10-15 20:00:32 -06:00
Makefile selftests: Set CC using CROSS_COMPILE once in lib.mk 2015-03-19 15:16:51 -06:00
create-read.c selftests/efivarfs: add create-read test 2013-02-27 19:10:24 -08:00
efivarfs.sh efi: Make efivarfs entries immutable by default 2016-02-10 16:25:52 +00:00
open-unlink.c efi: Make efivarfs entries immutable by default 2016-02-10 16:25:52 +00:00