Permalink
Please sign in to comment.
Browse files
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>
- Loading branch information...
Showing
with
258 additions
and 41 deletions.
- +7 −0 Documentation/filesystems/efivarfs.txt
- +64 −23 drivers/firmware/efi/vars.c
- +70 −0 fs/efivarfs/file.c
- +19 −11 fs/efivarfs/inode.c
- +2 −1 fs/efivarfs/internal.h
- +7 −2 fs/efivarfs/super.c
- +2 −0 include/linux/efi.h
- +16 −3 tools/testing/selftests/efivarfs/efivarfs.sh
- +71 −1 tools/testing/selftests/efivarfs/open-unlink.c
Oops, something went wrong.
0 comments on commit
ed8b0de