pbatard / EfiFs

EFI FileSystem drivers
https://efi.akeo.ie
GNU General Public License v3.0
506 stars 77 forks source link

Executing EFI Binaries On Newly Loaded Filesystems #30

Closed p0da closed 3 years ago

p0da commented 3 years ago

Had a quick question/issue about the possibility of executing efi binaries on newly loaded filesystems such as btrfs or ext4. I see that efifs is specifically denoted as read-only but was wondering if there is any way to also execute efi binaries that can be read. Thanks for any help.

pbatard commented 3 years ago

Those are drivers, so once the driver is loaded, you can execute whatever executable you can read from the corresponding file system.

For an example of a bootloader that loads an EfiFs driver (in this case the NTFS one) and then runs an EFI executable residing on the NTFS volume, which the EfiFs driver just granted access to, see https://github.com/pbatard/uefi-ntfs.