Re: [PATCH v2] efi: move some sysfs files to be read-only by root

2017-12-05 Thread Ard Biesheuvel
On 5 December 2017 at 10:41, Greg Kroah-Hartman wrote: > Thanks to the scripts/leaking_addresses.pl script, it was found that > some EFI values should not be readable by non-root users. > > So make them root-only, and to do that, add a __ATTR_RO_MODE() macro to > make this easier, and use it in ot

[PATCH v2] efi: move some sysfs files to be read-only by root

2017-12-05 Thread Greg Kroah-Hartman
Thanks to the scripts/leaking_addresses.pl script, it was found that some EFI values should not be readable by non-root users. So make them root-only, and to do that, add a __ATTR_RO_MODE() macro to make this easier, and use it in other places at the same time. Reported-by: Linus Torvalds Tested