Skip to content
Commit d0a1865c authored by Nicholas Bishop's avatar Nicholas Bishop Committed by Ard Biesheuvel
Browse files

efi/esrt: Allow ESRT access without CAP_SYS_ADMIN



Access to the files in /sys/firmware/efi/esrt has been restricted to
CAP_SYS_ADMIN since support for ESRT was added, but this seems overly
restrictive given that the files are read-only and just provide
information about UEFI firmware updates.

Remove the CAP_SYS_ADMIN restriction so that a non-root process can read
the files, provided a suitably-privileged process changes the file
ownership first. The files are still read-only and still owned by root
by default.

Signed-off-by: default avatarNicholas Bishop <nicholasbishop@google.com>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent d86ff333
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment